Sha256: 818dcb2bf34266b8df4d721f6440c77f483de9777c39da55b86126b1942cb553
Contents?: true
Size: 154 Bytes
Versions: 3
Compression:
Stored size: 154 Bytes
Contents
class Calcolatrice 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cucumber-3.0.1 | examples/i18n/it/lib/calcolatrice.rb |
cucumber-3.0.0 | examples/i18n/it/lib/calcolatrice.rb |
cucumber-3.0.0.pre.2 | examples/i18n/it/lib/calcolatrice.rb |