DEV Community

Discussion on: Idiomatic Ruby: writing beautiful code

Collapse
 
arjunrajkumar profile image
Arjun Rajkumar

Awesome! I love programming with Ruby too.

Recently discovered that the .any method can be used as an iterator too.
results.any? do |result|
end

Look forward to more.