Rule with String or Symbol class

1 view
Skip to first unread message

Rod

unread,
Aug 30, 2009, 10:15:47 PM8/30/09
to Ruleby
Isn't their a way to right a simple rule for a fact that is just a
string or a symbol?

For example, I've been trying to do something like this:

rule [String, :s, m.to_s == 'IdleFinished'] do |v|
puts 'idle finished'
end

Joe Kutner

unread,
Aug 31, 2009, 11:50:22 AM8/31/09
to rul...@googlegroups.com
That's the best way to write a rule for String. Eventually, I would
like to refine the Ruleby DSL with some convenience features. If you
have any ideas for how to improve on this case please let us know!
Reply all
Reply to author
Forward
0 new messages