Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Re-factor properties method/ivar into class variable #12

Open
krainboltgreene opened this issue Jan 9, 2012 · 0 comments
Open

Re-factor properties method/ivar into class variable #12

krainboltgreene opened this issue Jan 9, 2012 · 0 comments

Comments

@krainboltgreene
Copy link
Owner

Source TODO marker:

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
    # TODO: Raise properties into a class variable
    self.class.properties.include? property
  end
end
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant