Ruby operator precedence

Hi

I’ve been toying a bit with Ruby based DSL in which I use some standard
Ruby
operators for
my own evil purposes. I have some problems with operator precedence
though.
I can’t find any
information about the predence of binary operators in Ruby. For
instance if
I have

a and b and c <=> d and e

In which order does Ruby evaluate this?

Does any one known of some documentation of operator precedence in Ruby?

Is is possible to change precedence of builtin operators?

Regards,
Christian Theil H…

http://phrogz.net/ProgrammingRuby/language.html#table_18.4

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs