Test interactive Ruby examples.
Erudite helps you turn your documentation into tests. It is like a Ruby version
of the Python doctest
module.
- Installation
- Usage
Installation
To add Erudite as a dependency to your project, add it to your Gemfile.
gem 'erudite', '~> 0.3.0'
For other use cases, install it manually.
$ gem install erudite --version '~> 0.3.0'
Erudite uses Semantic Versioning. See the change log for a detailed list of changes.
Usage
# >> f(3)
# => 9
def f(x)
x**2
end
$ erudite example.rb
- PASS