Class: FalseClass
- 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
Constant Summary collapse
- AS_JSON =
ActiveSupport::JSON::Variable.new('false').freeze
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
-
#blank? ⇒ Boolean
false
is blank:. -
#duplicable? ⇒ Boolean
false
is not duplicable:. - #to_param ⇒ Object
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
170 |
# File 'lib/active_support/json/encoding.rb', line 170 def as_json( = nil) AS_JSON end |
#blank? ⇒ Boolean
false
is blank:
false.blank? # => true
55 56 57 |
# File '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
46 47 48 |
# File 'lib/active_support/core_ext/object/duplicable.rb', line 46 def duplicable? false end |
#to_param ⇒ Object
21 22 23 |
# File 'lib/active_support/core_ext/object/to_param.rb', line 21 def to_param self end |