public
Description: Literate programming for Ruby
Clone URL: git://github.com/oleganza/literate.git
name age message
file README Mon Jun 16 06:14:19 -0700 2008 added README [oleganza]
file TODO Mon Jun 16 06:32:36 -0700 2008 updated TODO [oleganza]
directory examples/ Mon Jun 16 06:04:59 -0700 2008 added run guards: __FILE__ == $0 [oleganza]
directory lib/ Mon Jun 16 06:08:06 -0700 2008 added first spec for engine itself [oleganza]
README
Literate is an engine for inline specs (tests) in your Ruby code. 

EXAMPLE

  spec "Box says custom message when instantiated with an argument" do 
    Box.new("Hi!").say.should == "Hi!"
  end

  class Box
    def initialize(msg = "Hello, world!")
      @msg = msg
    end
    def say
      @msg.freeze
    end
  end

See & run more examples in the /examples folder.

HOW TO RUN

Literate is tested with itself. Pretty cool, huh?
Simply run `ruby lib/literate.rb` to test the engine. 

AUTHOR

Oleg Andreev, oleganza@gmail.com