Class: FalseClass
- 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,
activesupport/lib/active_support/core_ext/object/duplicable.rb
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
-
#blank? ⇒ true
false
is blank:. -
#duplicable? ⇒ Boolean
false
is not duplicable:. -
#to_param ⇒ Object
Returns
self
.
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
68 69 70 |
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 68 def as_json( = nil) #:nodoc: self end |
#blank? ⇒ true
false
is blank:
false.blank? # => true
65 66 67 |
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 65 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 |
#to_param ⇒ Object
Returns self
.
31 32 33 |
# File 'activesupport/lib/active_support/core_ext/object/to_query.rb', line 31 def to_param self end |