Add easy fancy-pants examples to your projects
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
MIT-LICENSE
README
Rakefile
TODO
examples.rb
generate_examples_results.rb
simple_example.gemspec

README

Add easy fancy-pants examples to your projects.

running:

  require 'lib/simple_example'
  include SimpleExample

  example do
    x = 1 + 1
    y = 2 + 2
    x + y
  end

outputs:

  x = (1 + 1)
  #=> 2
  y = (2 + 2)
  #=> 4
  (x + y)
  #=> 6

Easy. Fancy.

There are a few neat options to tweak the formatting. See the examples.rb file.