clean-code-ruby icon indicating copy to clipboard operation
clean-code-ruby copied to clipboard

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

Open rocLv opened this issue 6 years ago • 0 comments

In ruby:

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

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

rocLv avatar Feb 18 '19 12:02 rocLv