Sha256: 99ea8e450c64e5dac6c018919807f5aca62741d50e84916b615c5308eca58ff1

Contents?: true

Size: 184 Bytes

Versions: 3

Compression:

Stored size: 184 Bytes

Contents

class Kalkilatris
  def push(n)
    @args ||= []
    @args << n
  end

  def ajoute
    @args.inject(0){|n,sum| sum + n}
  end

  def divize
    @args[0].to_f / @args[1].to_f
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/i18n/ht/lib/kalkilatris.rb
cucumber-3.0.0 examples/i18n/ht/lib/kalkilatris.rb
cucumber-3.0.0.pre.2 examples/i18n/ht/lib/kalkilatris.rb