Class: Struct

Inherits:
Object show all
Defined in:
lib/dorian/to_struct.rb

Instance Method Summary collapse

Instance Method Details

#from_deep_structObject



24
25
26
# File 'lib/dorian/to_struct.rb', line 24

def from_deep_struct
  to_h { |key, value| [key, value.from_deep_struct] }
end

#from_structObject



20
21
22
# File 'lib/dorian/to_struct.rb', line 20

def from_struct
  to_h
end