Class: NilClass

Inherits:
Object show all
Defined in:
lib/NilClass/blankQ.rb,
lib/NilClass/default_to.rb

Overview

History: Stolen wholesale from ActiveSupport.

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (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