Class: Data
- Inherits:
-
Object
- Object
- Data
- Includes:
- Everythingrb::InspectQuotable
- Defined in:
- lib/everythingrb/data.rb
Overview
Extensions to Ruby’s core Data class
Provides:
-
#to_deep_h: Recursively convert to hash with all nested objects
-
#in_quotes, #with_quotes: Wrap object in quotes
Instance Method Summary collapse
-
#to_deep_h ⇒ Hash
Recursively converts the Data object and all nested objects to hashes.
Methods included from Everythingrb::InspectQuotable
Instance Method Details
#to_deep_h ⇒ Hash
Recursively converts the Data object and all nested objects to hashes
23 24 25 |
# File 'lib/everythingrb/data.rb', line 23 def to_deep_h to_h.to_deep_h end |