Class: Hash
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.try_convert(obj) ⇒ Object
50 51 52 |
# File 'lib/kameleon/compat.rb', line 50 def self.try_convert(obj) obj.try(:to_hash) end |
Instance Method Details
#flatten ⇒ Object
54 55 56 |
# File 'lib/kameleon/compat.rb', line 54 def flatten to_a.flatten! end |