Class: Struct

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

Instance Method Summary collapse

Instance Method Details

#from_deep_structObject



26
27
28
# File 'lib/dorian/to_struct.rb', line 26

def from_deep_struct
  to_h.transform_keys(&:to_s).transform_values(&:from_deep_struct)
end

#from_structObject



22
23
24
# File 'lib/dorian/to_struct.rb', line 22

def from_struct
  to_h.transform_keys(&:to_s)
end