Sha256: bc6378ddc27f0d624c2835117c2ea40dfc699afc4399d91d36201dbd9b80fb39

Contents?: true

Size: 137 Bytes

Versions: 6

Compression:

Stored size: 137 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kosmas58-cucumber-0.1.100.5 examples/i18n/fr/lib/calculatrice.rb
kosmas58-cucumber-0.1.99.23 examples/i18n/fr/lib/calculatrice.rb
kosmas58-cucumber-0.2.0.1 examples/i18n/fr/lib/calculatrice.rb
kosmas58-cucumber-0.2.0 examples/i18n/fr/lib/calculatrice.rb
kosmas58-cucumber-0.2.2.1 examples/i18n/fr/lib/calculatrice.rb
kosmas58-cucumber-0.2.3.3 examples/i18n/fr/lib/calculatrice.rb