module Proximity::Utils
Public Instance Methods
source_and_target(hash)
click to toggle source
# File lib/proximity/utils.rb, line 5 def source_and_target(hash) hash.to_a.first end
stringify_keys!(hash)
click to toggle source
# File lib/proximity/utils.rb, line 9 def stringify_keys!(hash) hash.keys.each { |key| hash[key.to_s] = hash.delete(key) } end