Sha256: a444e9b8fb635663b85e13320e7f1b7fe76eb2c7ec983d4ac5053bbb8befccca

Contents?: true

Size: 184 Bytes

Versions: 3

Compression:

Stored size: 184 Bytes

Contents

class Calculadora

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

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

  def divide
    @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/ca/lib/calculadora.rb
cucumber-3.0.0 examples/i18n/ca/lib/calculadora.rb
cucumber-3.0.0.pre.2 examples/i18n/ca/lib/calculadora.rb