Class: NilClass
- Defined in:
- lib/rmtools/core/b.rb,
lib/rmtools/core/boolean.rb
Instance Method Summary collapse
- #<(obj) ⇒ Object
- #<=(obj) ⇒ Object
- #<=>(obj) ⇒ Object
- #>(obj) ⇒ Object
- #>=(obj) ⇒ Object
- #b ⇒ Object
- #to_i ⇒ Object
Instance Method Details
#<(obj) ⇒ Object
40 |
# File 'lib/rmtools/core/boolean.rb', line 40 def < obj; !obj.nil? end |
#<=(obj) ⇒ Object
41 |
# File 'lib/rmtools/core/boolean.rb', line 41 def <= obj; true or obj == true end |
#<=>(obj) ⇒ Object
36 37 38 |
# File 'lib/rmtools/core/boolean.rb', line 36 def <=>(obj) obj.nil? ? 0 : -1 end |
#>(obj) ⇒ Object
42 |
# File 'lib/rmtools/core/boolean.rb', line 42 def > obj; false end |
#>=(obj) ⇒ Object
43 |
# File 'lib/rmtools/core/boolean.rb', line 43 def >= obj; obj.nil? or obj == true end |
#b ⇒ Object
26 |
# File 'lib/rmtools/core/b.rb', line 26 def b; false end |
#to_i ⇒ Object
35 |
# File 'lib/rmtools/core/boolean.rb', line 35 def to_i; 0; end |