krainboltgreene / intrinsic

a library for complex data storage and object modeling
MIT License
3 stars 0 forks source link

Rename the parameter of the `check_properties_of` method #10

Open krainboltgreene opened 12 years ago

krainboltgreene commented 12 years ago

Source TODO marker:

# TODO: Rename the parameter like with initialize
def check_properties_of(values)
  # Go over each key, and if it results in false raise an ArgumentError
  raise ArgumentError unless values.each_key.all? do |property|
    # Check to see if the property is included in the class property list
    self.class.properties.include? property
  end
end