Class: FalseClass
- 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 FalseClass is immutable it cannot be duplicated.
- #dup? ⇒ Boolean
- #to_bool ⇒ Object
Instance Method Details
#blank? ⇒ Boolean
50 51 52 |
# File 'lib/core/facets/kernel/blank.rb', line 50 def blank? true end |
#clone? ⇒ Boolean
45 |
# File 'lib/core/facets/object/dup.rb', line 45 def clone? ; false ; end |
#dup! ⇒ Object
Since FalseClass is immutable it cannot be duplicated. For this reason #try_dup returns self
.
false.dup! #=> false
43 |
# File 'lib/core/facets/object/dup.rb', line 43 def dup! ; self ; end |
#dup? ⇒ Boolean
44 |
# File 'lib/core/facets/object/dup.rb', line 44 def dup? ; false ; end |
#to_bool ⇒ Object
45 46 47 |
# File 'lib/core/facets/boolean.rb', line 45 def to_bool self end |