Sha256: 6630f9c12790481929525fae30a046100a84e41962960daacbb39057d68abc5e

Contents?: true

Size: 201 Bytes

Versions: 3

Compression:

Stored size: 201 Bytes

Contents

# encoding: utf-8
class HesapMakinesi
  def push(n)
    @args ||= []
    @args << n
  end

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

  def böl
    @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/tr/lib/hesap_makinesi.rb
cucumber-3.0.0 examples/i18n/tr/lib/hesap_makinesi.rb
cucumber-3.0.0.pre.2 examples/i18n/tr/lib/hesap_makinesi.rb