module Srm::Hash

Public Instance Methods

has_truthy_member?(hash, key) click to toggle source
# File lib/srm/hash.rb, line 3
def has_truthy_member?(hash, key)
  hash[key] ? true : false
end
is_not_empty?(hash) click to toggle source
# File lib/srm/hash.rb, line 7
def is_not_empty?(hash)
  hash.length > 0
end