class Hashie::Trash
def property_exists?(property)
Raises an NoMethodError if the property doesn't exist
def property_exists?(property) unless self.class.property?(property.to_sym) fail NoMethodError, "The property '#{property}' is not defined for this Trash." end true end