Class: TrueClass
- Inherits:
-
Object
- Object
- 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
Constant Summary
- AS_JSON =
ActiveSupport::JSON::Variable.new('true').freeze
Instance Method Summary (collapse)
-
- (Object) as_json(options = nil)
:nodoc:.
-
- (Boolean) blank?
true is not blank:.
-
- (Boolean) duplicable?
true is not duplicable:.
- - (Object) to_param
Instance Method Details
- (Object) as_json(options = nil)
:nodoc:
165 |
# File 'activesupport/lib/active_support/json/encoding.rb', line 165 def as_json( = nil) AS_JSON end |
- (Boolean) blank?
true is not blank:
true.blank? # => false
65 66 67 |
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 65 def blank? false end |
- (Boolean) duplicable?
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 |
- (Object) to_param
15 16 17 |
# File 'activesupport/lib/active_support/core_ext/object/to_param.rb', line 15 def to_param self end |