Module: Rbsiev::Primitives::Comparison
- Included in:
- Rbsiev::Primitives
- Defined in:
- lib/rbsiev/primitives/comparison.rb
Instance Method Summary collapse
- #ge?(*args) ⇒ Boolean
- #gt?(*args) ⇒ Boolean
- #le?(*args) ⇒ Boolean
- #lt?(*args) ⇒ Boolean
- #same_value?(*args) ⇒ Boolean
Instance Method Details
#ge?(*args) ⇒ Boolean
21 22 23 |
# File 'lib/rbsiev/primitives/comparison.rb', line 21 def ge?(*args) c_calc(:>=, *args) end |
#gt?(*args) ⇒ Boolean
17 18 19 |
# File 'lib/rbsiev/primitives/comparison.rb', line 17 def gt?(*args) c_calc(:>, *args) end |
#le?(*args) ⇒ Boolean
13 14 15 |
# File 'lib/rbsiev/primitives/comparison.rb', line 13 def le?(*args) c_calc(:<=, *args) end |
#lt?(*args) ⇒ Boolean
9 10 11 |
# File 'lib/rbsiev/primitives/comparison.rb', line 9 def lt?(*args) c_calc(:<, *args) end |
#same_value?(*args) ⇒ Boolean
25 26 27 |
# File 'lib/rbsiev/primitives/comparison.rb', line 25 def same_value?(*args) c_calc(:==, *args) end |