Sha256: 94824de099b7ef9f2f950f446ddc4c78ac6fcd15e0c399014ae0d86d9d971944
Contents?: true
Size: 344 Bytes
Versions: 3
Compression:
Stored size: 344 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opendsl-1.1.1 | qed/example.rdoc |
opendsl-1.1.0 | qed/example.rdoc |
opendsl-1.0.0 | qed/example.rdoc |