krainboltgreene/intrinsic — Issue #9: Write subclass logic for "schema-less" document approach
Author: krainboltgreene
Created: 2012-01-09 04:38:07+00:00
State: open
Labels: Feature

Source TODO marker:

``` ruby
# TODO: Look into expanding this to allow for "subclass with slightly different
# attributes" situation
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
```