Module: IndeStruct
- Extended by:
- IndeStruct
- Included in:
- IndeStruct
- Defined in:
- lib/inde_struct.rb,
lib/inde_struct/parser.rb,
lib/inde_struct/reader.rb,
lib/inde_struct/version.rb,
lib/inde_struct/parser/hash_any_case.rb,
lib/inde_struct/parser/open_struct_any_case.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"1.0.1"
Instance Method Summary collapse
- #ible(arg) ⇒ Object (also: #new)
Instance Method Details
#ible(arg) ⇒ Object Also known as: new
8 9 10 11 |
# File 'lib/inde_struct.rb', line 8 def ible(arg) obj = arg.is_a?(Hash) ? arg : IndeStruct::Reader.read(arg) IndeStruct::Parser.parse(obj) end |