Class: TrueClass

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



70
71
72
# File 'lib/active_support/core_ext/object/json.rb', line 70

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

#blank?false

true is not blank:

true.blank? # => false

Returns:

  • (false)


78
79
80
# File 'lib/active_support/core_ext/object/blank.rb', line 78

def blank?
  false
end

#to_paramObject

Returns self.



27
28
29
# File 'lib/active_support/core_ext/object/to_query.rb', line 27

def to_param
  self
end