Class: NilClass
Instance Method Summary collapse
-
#&(anObject) ⇒ Object
Returns false.
-
#^(anObject) ⇒ Object
Returns false if anObject is nil or false, true otherwise.
- #inspect ⇒ Object
-
#nil? ⇒ Boolean
Always returns true.
-
#to_a ⇒ Object
Always returns an empty array.
- #to_f ⇒ Object
-
#to_i ⇒ Object
Always returns zero.
-
#to_s ⇒ Object
(also: #to_str)
Always returns the empty string.
-
#|(anObject) ⇒ Object
Returns false if anObject is nil or false, true otherwise.
Instance Method Details
#&(anObject) ⇒ Object
Returns false
504 505 506 |
# File 'lib/builtinME.rb', line 504 def &(anObject) false end |
#^(anObject) ⇒ Object
Returns false if anObject is nil or false, true otherwise
509 510 511 |
# File 'lib/builtinME.rb', line 509 def ^(anObject) anObject ? true : false end |
#inspect ⇒ Object
542 543 544 |
# File 'lib/builtinME.rb', line 542 def inspect "nil" end |
#nil? ⇒ Boolean
Always returns true
519 520 521 |
# File 'lib/builtinME.rb', line 519 def nil? true end |
#to_a ⇒ Object
Always returns an empty array
524 525 526 |
# File 'lib/builtinME.rb', line 524 def to_a [] end |
#to_f ⇒ Object
533 534 535 |
# File 'lib/builtinME.rb', line 533 def to_f 0.0 end |
#to_s ⇒ Object Also known as: to_str
Always returns the empty string
538 539 540 |
# File 'lib/builtinME.rb', line 538 def to_s "" end |
#|(anObject) ⇒ Object
Returns false if anObject is nil or false, true otherwise
514 515 516 |
# File 'lib/builtinME.rb', line 514 def |(anObject) anObject ? true : false end |