Class: NilClass

Inherits:
Object show all
Defined in:
lib/nyara/patches/blank.rb,
lib/nyara/patches/to_query.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

+nil+ is blank:

nil.blank? # => true

Returns:

  • (Boolean)

69
70
71
# File 'lib/nyara/patches/blank.rb', line 69

def blank?
  true
end

#to_paramObject

Returns +self+.


39
40
41
# File 'lib/nyara/patches/to_query.rb', line 39

def to_param
  self
end