TIL, 2017-05-30
.present?
and.blank?
can be the interface method that is used when detecting falsity: false, nil, [], {}, ‘’, and ‘ ‘ return false whenpresent?
.present?
and.blank?
are also just available in Rails.- nil doesn’t respond to
empty?
. - Skype shortcuts: Cmd-Shift-M : Mute.
- Ruby pluralize: first argument for the singular, second for the plural (IKR).