Ruby operator precedence


I’ve been toying a bit with Ruby based DSL in which I use some standard
operators for
my own evil purposes. I have some problems with operator precedence
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?

Christian Theil H…

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