Top Level Namespace
Defined Under Namespace
Classes: FancyStruct
Instance Method Summary collapse
Instance Method Details
#FancyStruct(*attribs, &blk) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/fancystruct.rb', line 62 def FancyStruct(*attribs, &blk) if attribs.size == 1 && attribs.first.is_a?(Hash) FancyStruct.deep_obj attribs.first else FancyStruct.create *attribs, &blk end end |