unless

Usage guidelines for Unless in Ruby

Summary:
Only use >>unless<< in statement modifiers and without else.

The long story:
I went last week to Ruby Nation, and during one talk, the speaker made a big point on how one should try to learn idiomatic ruby. Then he went through a number of examples on what idioms one should be using. That was a great talk for me, and I am already trying to apply the principles that he gave, such as method_names_with_underscore, using attr_accessor (which are awesome) and using hashes for configuration files.

Syndicate content