Sha256: 752c5c13373eed35508c0898594118ac013418d607f0df7defaeba2b44c1b7ba

Contents?: true

Size: 131 Bytes

Versions: 52

Compression:

Stored size: 131 Bytes

Contents

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

Version data entries

52 entries across 52 versions & 5 rubygems

Version Path
jeffrafter-cucumber-0.1.12 examples/i18n/et/lib/kalkulaator.rb
kosmas58-cucumber-0.1.16.5 examples/i18n/et/lib/kalkulaator.rb
kosmas58-cucumber-0.1.16.6 examples/i18n/et/lib/kalkulaator.rb
kosmas58-cucumber-0.1.99.21 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.11 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.12 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.14 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.13 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.10 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.15 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.16 examples/i18n/et/lib/kalkulaator.rb
cucumber-0.1.9 examples/i18n/et/lib/kalkulaator.rb