Class: FalseClass

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



75
76
77
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 75

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

#blank?true

false is blank:

false.blank? # => true

Returns:

  • (true)


67
68
69
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 67

def blank?
  true
end

#to_paramObject

Returns self.



34
35
36
# File 'activesupport/lib/active_support/core_ext/object/to_query.rb', line 34

def to_param
  self
end