# encoding: utf-8 class Calculator def push(n) @args ||= [] @args << n end def חבר @args.inject(0){|n,sum| sum+=n} end def חלק @args[0].to_f / @args[1].to_f end end