Sha256: f77322a2384872408721330da17c8db350a75bc9df86f0e502771a38d2e9ebfe

Contents?: true

Size: 183 Bytes

Versions: 3

Compression:

Stored size: 183 Bytes

Contents

class Calculator
  def push(n)
    @args ||= []
    @args << n
  end

  def dodaj
    @args.inject(0){|n,sum| sum + n}
  end

  def podziel
    @args[0].to_f / @args[1].to_f
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/i18n/pl/lib/calculator.rb
cucumber-3.0.0 examples/i18n/pl/lib/calculator.rb
cucumber-3.0.0.pre.2 examples/i18n/pl/lib/calculator.rb