📚 Test interactive Ruby examples.
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.gitattributes
.gitignore
.irbrc
.rspec
.travis.yml
CHANGELOG.md
Gemfile
LICENSE.md
README.md
Rakefile
erudite.gemspec

README.md

Erudite

Version Build Coverage Climate Dependencies

Test interactive Ruby examples.

Erudite helps you turn your documentation into tests. It is like a Ruby version of the Python doctest module.

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