class Demalculator::CLI
Public Instance Methods
add(a, b)
click to toggle source
# File lib/demalculator/cli.rb, line 9 def add(a, b) puts Demalculator::Calc.add(a.to_f, b.to_f) end
exp(a, b)
click to toggle source
# File lib/demalculator/cli.rb, line 24 def exp(a, b) puts Demalculator::Calc.power(a.to_f, b.to_f) end
multiply(a, b)
click to toggle source
# File lib/demalculator/cli.rb, line 19 def multiply(a, b) puts Demalculator::Calc.multiply(a.to_f, b.to_f) end
subtract(a, b)
click to toggle source
# File lib/demalculator/cli.rb, line 14 def subtract(a, b) puts Demalculator::Calc.subtract(a.to_f, b.to_f) end