minimum = if x < y then x else y end
can also be written as :
minimum = x < y ? x : y
This eliminates the mental mapping from .. and ... to the behaviour of the methods.
3) This does not work:
alias inclusive ..
alias exclusive ...
gives syntax error, unexpected tDOT2
So how do you redefine the .. and ...? If you do ri Fixnum, it shows the instance methods. The section on Operators has discussion on operators that can be re-defined.