Mega Code Archive

 
Categories / Ruby / Class
 

Everything is an object or object-oriented in Ruby

# the expression 1.+ is simply calling the + method of the 1 object puts 1.+(2)