Sha256: 6d97f6e82c9acc5ee49fa1495b5c61bb491567747e7c764d4c4c407752821c32
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
= README Example Require the OpenDSL library. require 'opendsl' Create an OpenDSL module. Foo = OpenDSL.new do foo do 'foo' end end Apply it to a class. class Something include Foo def foobar foo + 'bar' end end Verify it worked as expected. s = Something.new s.foobar.assert == 'foobar'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opendsl-1.1.1 | QED.rdoc |