Sha256: 09a69464d397311f7797b6ee8d093e1ec234aa25f35c8c6e0bad9162da6b5b64
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
= OpenStructable Require the library. require 'mixers/ostructable' We will use the simpliest example class. class X include OpenStructable end x = X.new So arbitrary attributes can be added to the object just as if it were an OpenStruct. x.a = 1 x.b = 2 x.assert.a == 1 x.assert.a == 2
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mixers-1.2.0 | qed/08_ostructable.rdoc |