Ruby

Ruby is a programming language. It stands out for its syntax, community, legibility, simplicity and power. Come on and start to play with Ruby!

Articles

Ruby safe operator

Edited on Jan. 14 Finally, the safe operator was updated from .? to &.. See this comment from Matz. Ruby Safe operator Recently, I read in reddit about a new feature in next Ruby minor release: Ruby Safe operator. &. is used to call a method... Read.more

Multiple assignment in Ruby

On Ruby we can assign multiple values to our variables. These assignments are very useful to reset variables and return multiple values from methods. Multiple assignment There are two ways to assign multiples values to variables: # First a, b = 1, 2 puts "#{a}, #{b}" # 1,... Read.more

Ruby fights!

Ruby is a powerful and expressive language. Core and Standard library provide us a lot of methods to develop our applications easily. Sometimes there are multiple ways to get same result, but what's the optimal solution? Face to face I've started a project to put... Read.more

Living outside Rails

Frameworks are powerful tools to develop software. However, they are dangerous. We get used to his classes, methods... and take them as property of the programming language they are written. Rails isn't an exception. Welcome to the life outside Rails. Gems When we are writing... Read.more

Comparison of arrays in Ruby

This morning I was working with arrays on Ruby 2.1.2. I have compiled for you different ways to compare arrays with others arrays or values. Comparing values We can use include? to ask the array if it includes a value in its elements.... Read.more