Module: Rbsiev::Primitives::Comparison

Included in:
Rbsiev::Primitives
Defined in:
lib/rbsiev/primitives/comparison.rb

Instance Method Summary collapse

Instance Method Details

#ge?(*args) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/rbsiev/primitives/comparison.rb', line 21

def ge?(*args)
  c_calc(:>=, *args)
end

#gt?(*args) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/rbsiev/primitives/comparison.rb', line 17

def gt?(*args)
  c_calc(:>, *args)
end

#le?(*args) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/rbsiev/primitives/comparison.rb', line 13

def le?(*args)
  c_calc(:<=, *args)
end

#lt?(*args) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/rbsiev/primitives/comparison.rb', line 9

def lt?(*args)
  c_calc(:<, *args)
end

#same_value?(*args) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/rbsiev/primitives/comparison.rb', line 25

def same_value?(*args)
  c_calc(:==, *args)
end