Ruleby / ruleby

the Rules Engine for Ruby
http://www.ruleby.org
Other
327 stars 42 forks source link

Throw NoMethodError if type is specified #2

Open amattsmith opened 15 years ago

amattsmith commented 15 years ago

Currently, the HashedNode class traps NoMethodError. This is necessary for patterns that use the :is_a? quantifier or do not specify a type. But if a type is explicitly specified, and the pattern contains a method that does not exist, then the Engine should throw the NoMethodError.

original LH ticket

This ticket has 0 attachment(s).

amattsmith commented 15 years ago

Throw NoMethodError if type is specified

Thanks to Pius Uzamere for reporting this

by jpkutner (at gmail)