Thanks for your feedback Joe,
Hmmm, I thought I had tried the method chaining in the conditional
block?? Ahh I remember I needed to pass the entire object to the block
for something like this:
m(&c{|model| model.foo > model.bar})
and that did not work (invalid shorthand) - but yes i would have
expected a straight yield on the block.
On Oct 4, 8:54 pm, Joe Kutner <
jpkut...@gmail.com> wrote:
> That is the correct behavior - you can't chain methods in the rule.
> But as with your other question, it would be an easy feature to add.
>
> An alternative that would allow you to do the method chaining without
> modifying the fact's class would be something like:
>
> rule [ExistingAction, :a, m.existing_action(&c{|existing_action|
> existing_action.page.depth > x})] do |v|
> puts "EXISTING ACTION FOUND"
> end
>