Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/tax_calc.rb
Instance Method Summary collapse
Instance Method Details
#new_tax ⇒ Object
4 5 6 |
# File 'lib/tax_calc.rb', line 4 def new_tax return (self*0.08).round() end |
#old_tax ⇒ Object
8 9 10 |
# File 'lib/tax_calc.rb', line 8 def old_tax return (self*0.05).round() end |