Sha256: 4c57be4d06d3d2527c5845c0d66f8e02c578cf08a7650f246a7e4ac68b9ef422

Contents?: true

Size: 128 Bytes

Versions: 345

Compression:

Stored size: 128 Bytes

Contents

class Calculator
  def push(n)
    @args ||= []
    @args << n
  end
  
  def add
    @args.inject(0){|n,sum| sum+=n}
  end
end

Version data entries

345 entries across 341 versions & 31 rubygems

Version Path
aslakhellesoy-cucumber-0.1.13.2 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.13.3 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.13 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.14.1 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.14.2 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.15 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.16.1 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.16.2 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.16.3 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.16.4 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.16.5 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.16 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.9 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.99.1 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.99.10 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.99.11 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.99.12 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.99.13 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.99.14 examples/i18n/zh-CN/lib/calculator.rb
aslakhellesoy-cucumber-0.1.99.15 examples/i18n/zh-CN/lib/calculator.rb