Class: TrueClass
- 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? ⇒ false
true
is not blank:. -
#duplicable? ⇒ Boolean
true
is not duplicable:. -
#to_param ⇒ Object
Returns
self
.
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
62 63 64 |
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 62 def as_json( = nil) #:nodoc: self end |
#blank? ⇒ false
true
is not blank:
true.blank? # => false
76 77 78 |
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 76 def blank? false end |
#duplicable? ⇒ Boolean
true
is not duplicable:
true.duplicable? # => false
true.dup # => TypeError: can't dup TrueClass
54 55 56 |
# File 'activesupport/lib/active_support/core_ext/object/duplicable.rb', line 54 def duplicable? false end |
#to_param ⇒ Object
Returns self
.
24 25 26 |
# File 'activesupport/lib/active_support/core_ext/object/to_query.rb', line 24 def to_param self end |