Erudite

Gem version Build status Code coverage Code quality Dependency status

Executable documentation.

Installation

Add it to your Gemfile:

gem 'erudite', '~> 0.2.0'

Or install it manually:

$ gem install erudite --version 0.2.0

This project uses Semantic Versioning.

Usage

# example.irb
>> 1 + 2
=> 3

>> Object.new
=> #<Object:0x...>

>> gets
=> nil

>> puts 'hello world'
hello world
=> nil

>> warn 'oh noes'
oh noes
=> nil

>> fail 'catastrophe'
RuntimeError: catastrophe

>> puts 'chunky
.. bacon'
chunky
bacon
=> nil

>> def double(n)
..   2 * n
.. end
>> double(3)
=> 6
$ erudite example.irb
- PASS
- PASS
- PASS
- PASS
- PASS
- PASS
- PASS
- PASS
- PASS