Class: Struct
- Inherits:
-
Object
- Object
- Struct
- Defined in:
- lib/everythingrb/struct.rb
Overview
Extensions to Ruby’s core Struct class
Provides:
-
#to_deep_h: Recursively convert to hash with all nested objects
Instance Method Summary collapse
-
#to_deep_h ⇒ Hash
Recursively converts the Struct and all nested objects to hashes.
Instance Method Details
#to_deep_h ⇒ Hash
Recursively converts the Struct and all nested objects to hashes
28 29 30 |
# File 'lib/everythingrb/struct.rb', line 28 def to_deep_h to_h.to_deep_h end |