Class: TrueClass
- Defined in:
- lib/active_support/json/encoding.rb,
lib/active_support/core_ext/object/blank.rb,
lib/active_support/core_ext/object/to_param.rb,
lib/active_support/core_ext/object/duplicable.rb
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
-
#blank? ⇒ Boolean
true
is not blank:. -
#duplicable? ⇒ Boolean
true
is not duplicable:. -
#encode_json(encoder) ⇒ Object
:nodoc:.
-
#to_param ⇒ Object
Returns
self
.
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
163 164 165 |
# File 'lib/active_support/json/encoding.rb', line 163 def as_json( = nil) #:nodoc: self end |
#blank? ⇒ Boolean
true
is not blank:
true.blank? # => false
64 65 66 |
# File 'lib/active_support/core_ext/object/blank.rb', line 64 def blank? false end |
#duplicable? ⇒ Boolean
true
is not duplicable:
true.duplicable? # => false
true.dup # => TypeError: can't dup TrueClass
54 55 56 |
# File 'lib/active_support/core_ext/object/duplicable.rb', line 54 def duplicable? false end |
#encode_json(encoder) ⇒ Object
:nodoc:
167 168 169 |
# File 'lib/active_support/json/encoding.rb', line 167 def encode_json(encoder) #:nodoc: to_s end |
#to_param ⇒ Object
Returns self
.
17 18 19 |
# File 'lib/active_support/core_ext/object/to_param.rb', line 17 def to_param self end |