Sha256: ef64bc76fc3b51474f6f9bdf70f3dcfa12a3524f3411b9fae79eef43567666ce

Contents?: true

Size: 154 Bytes

Versions: 147

Compression:

Stored size: 154 Bytes

Contents

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

Version data entries

147 entries across 143 versions & 17 rubygems

Version Path
cucumber-0.7.0.beta.7 examples/i18n/da/lib/lommeregner.rb
cucumber-0.7.0.beta.6 examples/i18n/da/lib/lommeregner.rb
cucumber-0.7.0.beta.5 examples/i18n/da/lib/lommeregner.rb
cucumber-0.7.0.beta.4 examples/i18n/da/lib/lommeregner.rb
cucumber-0.7.0.beta.3 examples/i18n/da/lib/lommeregner.rb
cucumber-0.7.0.beta.2 examples/i18n/da/lib/lommeregner.rb
cucumber-0.7.0.beta.1 examples/i18n/da/lib/lommeregner.rb
cucumber-0.6.4 examples/i18n/da/lib/lommeregner.rb
cucumber-0.6.3 examples/i18n/da/lib/lommeregner.rb
davidtrogers-cucumber-0.6.2 examples/i18n/da/lib/lommeregner.rb
cucumber-0.6.2 examples/i18n/da/lib/lommeregner.rb
cucumber-0.6.1 examples/i18n/da/lib/lommeregner.rb
cucumber-0.6.0 examples/i18n/da/lib/lommeregner.rb
cucumber-0.5.3 examples/i18n/da/lib/lommeregner.rb
cucumber-0.5.2 examples/i18n/da/lib/lommeregner.rb
cucumber-0.5.1 examples/i18n/da/lib/lommeregner.rb
cucumber-0.5.0 examples/i18n/da/lib/lommeregner.rb
cucumber-0.4.5.rc2 examples/i18n/da/lib/lommeregner.rb
kbaum-cucumber-0.4.5.pre examples/i18n/da/lib/lommeregner.rb
cucumber-0.4.5.rc1 examples/i18n/da/lib/lommeregner.rb