Class: TrueClass
Instance Method Summary collapse
- #<(obj) ⇒ Object
- #<=(obj) ⇒ Object
- #<=>(obj) ⇒ Object
- #>(obj) ⇒ Object
- #>=(obj) ⇒ Object
- #to_i ⇒ Object
Instance Method Details
#<(obj) ⇒ Object
12 |
# File 'lib/rmtools/core/boolean.rb', line 12 def < obj; !!obj end |
#<=(obj) ⇒ Object
13 |
# File 'lib/rmtools/core/boolean.rb', line 13 def <= obj; !!obj or obj == true end |
#<=>(obj) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rmtools/core/boolean.rb', line 4 def <=>(obj) case obj when nil, false then 1 when self then 0 else -1 end end |
#>(obj) ⇒ Object
14 |
# File 'lib/rmtools/core/boolean.rb', line 14 def > obj; !obj end |
#>=(obj) ⇒ Object
15 |
# File 'lib/rmtools/core/boolean.rb', line 15 def >= obj; !obj or obj == true end |
#to_i ⇒ Object
3 |
# File 'lib/rmtools/core/boolean.rb', line 3 def to_i; 1; end |