Class: TrueClass
- Defined in:
- activesupport/lib/active_support/json/encoding.rb,
activesupport/lib/active_support/core_ext/object/blank.rb,
activesupport/lib/active_support/core_ext/object/to_param.rb,
activesupport/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
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
161 |
# File 'activesupport/lib/active_support/json/encoding.rb', line 161 def as_json( = nil) self end |
#blank? ⇒ Boolean
true
is not blank:
true.blank? # => false
68 69 70 |
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 68 def blank? false end |
#duplicable? ⇒ Boolean
true
is not duplicable:
true.duplicable? # => false
true.dup # => TypeError: can't dup TrueClass
57 58 59 |
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 57 def duplicable? false end |
#encode_json(encoder) ⇒ Object
:nodoc:
162 |
# File 'activesupport/lib/active_support/json/encoding.rb', line 162 def encode_json(encoder) to_s end |
#to_param ⇒ Object
15 16 17 |
# File 'activesupport/lib/active_support/core_ext/object/to_param.rb', line 15 def to_param self end |