Module: Calculator
- Defined in:
- lib/discount_calculator.rb
Class Method Summary collapse
-
.calc(amount, discount) ⇒ Object
Your code goes here…
Class Method Details
.calc(amount, discount) ⇒ Object
Your code goes here…
3 4 5 6 |
# File 'lib/discount_calculator.rb', line 3 def self.calc (amount, discount) disc = amount - (0.01 * discount * amount) return disc end |