class Simpl_calc123
Public Instance Methods
add(x,y)
click to toggle source
# File lib/simpl_calc123.rb, line 2 def add(x,y) puts "The sum is #{x+y}" end
div(x,y)
click to toggle source
# File lib/simpl_calc123.rb, line 14 def div(x,y) puts "The sum is #{x/y}" end
mul(x,y)
click to toggle source
# File lib/simpl_calc123.rb, line 10 def mul(x,y) puts "The sum is #{x*y}" end
sub(x,y)
click to toggle source
# File lib/simpl_calc123.rb, line 6 def sub(x,y) puts "The sum is #{x-y}" end