v0.6.5
Added Hash#to_struct
and Hash#to_deep_struct
in yake/support:
{ f: 'g', a: { d: 'e', b: 'c' } }.to_struct
# => #<OpenStruct f="g", a={:d=>"e", :b=>"c"}>
{ f: 'g', a: { d: 'e', b: 'c' } }.to_deep_struct
# => #<OpenStruct f="g", a=#<OpenStruct d="e", b="c">>
Added String#utc
in yake/support:
'2009-02-13T23:31:30Z'.utc
# => 2009-02-13 23:31:30 UTC