Class: FalseClass
- 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
false
is blank:. -
#duplicable? ⇒ Boolean
false
is not duplicable:. -
#encode_json(encoder) ⇒ Object
:nodoc:.
-
#to_param ⇒ Object
Returns
self
.
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
179 180 181 |
# File 'activesupport/lib/active_support/json/encoding.rb', line 179 def as_json( = nil) #:nodoc: self end |
#blank? ⇒ Boolean
false
is blank:
false.blank? # => true
55 56 57 |
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 55 def blank? true end |
#duplicable? ⇒ Boolean
false
is not duplicable:
false.duplicable? # => false
false.dup # => TypeError: can't dup FalseClass
44 45 46 |
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 44 def duplicable? false end |
#encode_json(encoder) ⇒ Object
:nodoc:
183 184 185 |
# File 'activesupport/lib/active_support/json/encoding.rb', line 183 def encode_json(encoder) #:nodoc: to_s end |
#to_param ⇒ Object
Returns self
.
24 25 26 |
# File 'activesupport/lib/active_support/core_ext/object/to_param.rb', line 24 def to_param self end |