I have started looking at ruleby but have hit a small snag. I can't
seem to understand how to use &condition. I have something like:
rule :Rule2,
[MyCass, :m, m.some_method_that_returns_an_array(&c{ |r|
r.include?("some val")})] do |v|
puts 'found it'
end
Am I defining this wrong? My understanding is that I can use
condition or c to apply a block to a method and the block will return
true or false for a match. Is this wrong?
Also, I think I found a bug. The method "binding" does not delegate
to method "b" correctly.