Class: FalseClass

Inherits:
Object show all
Defined in:
lib/active_support/core_ext/object/json.rb,
lib/active_support/core_ext/object/blank.rb,
lib/active_support/core_ext/object/to_query.rb,
lib/active_support/core_ext/object/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



72
73
74
# File 'lib/active_support/core_ext/object/json.rb', line 72

def as_json(options = nil) #:nodoc:
  self
end

#blank?true

false is blank:

false.blank? # => true

Returns:

  • (true)


65
66
67
# File 'lib/active_support/core_ext/object/blank.rb', line 65

def blank?
  true
end

#to_paramObject

Returns self.



32
33
34
# File 'lib/active_support/core_ext/object/to_query.rb', line 32

def to_param
  self
end