class Hash

Public Instance Methods

check_key( key, where='' ) click to toggle source
# File lib/curate_tumblr/utilities/monkey.rb, line 2
    def check_key( key, where='' )
raise "no key '#{key}' in Hash #{to_s} #{where}" if !self.has_key?( key )
raise "no key '#{key}' in Hash #{to_s} #{where}" if self[key].nil?
            raise "key '#{key}' is empty in Hash #{to_s} #{where}" if self[key].empty?
    end