Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/akaza/ruby2ws/prelude.rb

Instance Method Summary collapse

Instance Method Details

#<(right) ⇒ Object



26
27
28
# File 'lib/akaza/ruby2ws/prelude.rb', line 26

def <(right)
  (self <=> right) == -1
end

#<=(right) ⇒ Object



34
35
36
# File 'lib/akaza/ruby2ws/prelude.rb', line 34

def <=(right)
  (self <=> right) < 1
end

#>(right) ⇒ Object



30
31
32
# File 'lib/akaza/ruby2ws/prelude.rb', line 30

def >(right)
  (self <=> right) == 1
end

#>=(right) ⇒ Object



38
39
40
# File 'lib/akaza/ruby2ws/prelude.rb', line 38

def >=(right)
  (self <=> right) > -1
end