Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/ext/hash.rb
Instance Method Summary collapse
Instance Method Details
#to_a_recursive ⇒ Object
2 3 4 5 6 |
# File 'lib/ext/hash.rb', line 2 def to_a_recursive self.to_a.map do |k, v| [k, v.try(:to_a_recursive)] end end |