Module: Iode::Core::Math
- Defined in:
- lib/iode/core/math.rb
Instance Method Summary collapse
Instance Method Details
#*(*args) ⇒ Object
22 23 24 |
# File 'lib/iode/core/math.rb', line 22 def *(*args) args.reduce(:*) end |
#+(*args) ⇒ Object
30 31 32 |
# File 'lib/iode/core/math.rb', line 30 def +(*args) args.reduce(:+) end |
#-(*args) ⇒ Object
34 35 36 |
# File 'lib/iode/core/math.rb', line 34 def -(*args) args.reduce(:-) end |
#/(*args) ⇒ Object
26 27 28 |
# File 'lib/iode/core/math.rb', line 26 def /(*args) args.reduce(:/) end |