Module: Proximity::Utils
Instance Method Summary collapse
Instance Method Details
#source_and_target(hash) ⇒ Object
5 6 7 |
# File 'lib/proximity/utils.rb', line 5 def source_and_target(hash) hash.to_a.first end |
#stringify_keys!(hash) ⇒ Object
9 10 11 |
# File 'lib/proximity/utils.rb', line 9 def stringify_keys!(hash) hash.keys.each { |key| hash[key.to_s] = hash.delete(key) } end |