not==

11 views
Skip to first unread message

boadie

unread,
Jan 26, 2010, 3:29:18 AM1/26/10
to rul...@googlegroups.com
According to the Wiki entry for Ferrari.  not== is the short hand replacement for != but it does not seem to work.

In fact looking at the defs in ferrari.rb I guess it is not yet implemented? It is also not in the not test file.

The work around is to use something like
m.position( &condition{ |s| s != 0 } )

- Ric



Joe Kutner

unread,
Jan 26, 2010, 9:59:32 PM1/26/10
to rul...@googlegroups.com
not== should be working.  Check the examples:
http://github.com/mattup/ruleby/tree/master/examples/

I believe most of them use it.

--
You received this message because you are subscribed to the Google Groups "Ruleby" group.
To post to this group, send email to rul...@googlegroups.com.
To unsubscribe from this group, send email to ruleby+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruleby?hl=en.

boadie

unread,
Jan 27, 2010, 7:20:34 PM1/27/10
to rul...@googlegroups.com
WordGameRulebook has it.

What caught me was:
m.position.not==0
works
but
m.position not== 0
does not.

Thanks,
Ric
Reply all
Reply to author
Forward
0 new messages