Class: OpenStruct

Inherits:
Object show all
Defined in:
lib/h8/value.rb

Instance Method Summary collapse

Instance Method Details

#to_ruby(depth = 0) ⇒ Object

OpenStruct converts to plain ruby hash in depth. Primary usage is when it was used bu javascript and could contain gated objects.



187
188
189
# File 'lib/h8/value.rb', line 187

def to_ruby depth=0
  to_h.to_ruby depth+1
end