module HashSafety

Public Instance Methods

keys_contain_symbols?() click to toggle source
# File lib/kanban/hash_safety.rb, line 3
def keys_contain_symbols?
  keys.count { |key| key.is_a? Symbol } > 0
end
with_string_keys() click to toggle source
# File lib/kanban/hash_safety.rb, line 7
def with_string_keys
  each_with_object({}) do |(key, value), hash|
    hash[key.to_s] = value
    hash
  end
end