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

Provide a raise message for check_properties_of method #11

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

Provide a raise message for check_properties_of method #11

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
  # TODO: Provide helpful raise message
  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
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