Module: MathGem
- Defined in:
- lib/math_gem.rb,
lib/math_gem/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.add(a, b) ⇒ Object
Your code goes here…
- .multiply(a, b) ⇒ Object
- .sub(a, b) ⇒ Object
Class Method Details
.add(a, b) ⇒ Object
Your code goes here…
7 8 9 |
# File 'lib/math_gem.rb', line 7 def self.add(a,b) return a+b end |
.multiply(a, b) ⇒ Object
15 16 17 |
# File 'lib/math_gem.rb', line 15 def self.multiply(a,b) return a*b end |
.sub(a, b) ⇒ Object
11 12 13 |
# File 'lib/math_gem.rb', line 11 def self.sub(a,b) return a-b end |