Check to see if the specified property has already been defined.
# File lib/hashie/extensions/dash/indifferent_access.rb, line 13 def property?(name) name = name.to_s !!properties.find { |property| property.to_s == name } end
# File lib/hashie/extensions/dash/indifferent_access.rb, line 28 def transformation_exists?(name) name = name.to_s !!transforms.keys.find { |key| key.to_s == name } end
Generated with the Darkfish Rdoc Generator 2.