Class: TrueClass
- Defined in:
- lib/core/facets/boolean.rb,
lib/core/facets/object/dup.rb,
lib/core/facets/kernel/blank.rb
Instance Method Summary collapse
- #blank? ⇒ Boolean
- #clone? ⇒ Boolean
-
#dup! ⇒ Object
Since TrueClass is immutable it cannot be duplicated.
- #dup? ⇒ Boolean
- #to_bool ⇒ Object
Instance Method Details
#blank? ⇒ Boolean
56 57 58 |
# File 'lib/core/facets/kernel/blank.rb', line 56 def blank? false end |
#clone? ⇒ Boolean
56 |
# File 'lib/core/facets/object/dup.rb', line 56 def clone? ; false ; end |
#dup! ⇒ Object
Since TrueClass is immutable it cannot be duplicated. For this reason #try_dup returns self
.
true.dup! #=> true
54 |
# File 'lib/core/facets/object/dup.rb', line 54 def dup! ; self ; end |
#dup? ⇒ Boolean
55 |
# File 'lib/core/facets/object/dup.rb', line 55 def dup? ; false ; end |
#to_bool ⇒ Object
39 40 41 |
# File 'lib/core/facets/boolean.rb', line 39 def to_bool self end |