Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/cfer/provisioning/extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_hash_recursive ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/cfer/provisioning/extensions.rb', line 2 def to_hash_recursive result = self.to_hash result.each do |key, value| case value when Hash result[key] = value.to_hash_recursive when Array result[key] = value.to_hash_recursive end end result end |