uohzxela / clean-code-ruby

🛁 Clean Code concepts adapted for Ruby
MIT License
1.59k stars 158 forks source link

Other "falsy" values such as false and nil will be replaced by a default value in Ruby #32

Open rocLv opened 5 years ago

rocLv commented 5 years ago

In ruby:

a = nil || 'a'   
=> 'a'

a = false || 'a'
=> 'a'