Class: NilClass
- Defined in:
- lib/NilClass/blankQ.rb,
lib/NilClass/default_to.rb
Overview
History: Stolen wholesale from ActiveSupport.
Instance Method Summary collapse
- #blank? ⇒ Boolean
- #default_to(o) ⇒ Object (also: #defaults_to, #default_is)
Instance Method Details
#blank? ⇒ Boolean
11 12 13 |
# File 'lib/NilClass/blankQ.rb', line 11 def blank? true end |
#default_to(o) ⇒ Object Also known as: defaults_to, default_is
19 20 21 |
# File 'lib/NilClass/default_to.rb', line 19 def default_to(o) o end |