Sha256: 85c72ad69e14e3e9a698b66747e71766c741ee9e99880763d90a9fd0d20eab91

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

# encoding: utf-8

module TrangeFrange
  class Bilion < Struct.new :base
    include TrangeFrange::SuffixHelper
    
    BILIONS = %w[milijarda milijarde milijardi]

    def word
      order_condition.add { BILIONS[0] if suffix.one? and !suffix.suffix_base.teen? }
      order_condition.add { BILIONS[1] if suffix.gender? and !suffix.suffix_base.teen? }
      order_condition.add { BILIONS[2] }
      order_condition.match!
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trange_frange-0.1.5 lib/trange_frange/bilion.rb
trange_frange-0.1.4 lib/trange_frange/bilion.rb
trange_frange-0.1.3 lib/trange_frange/bilion.rb
trange_frange-0.1.2 lib/trange_frange/bilion.rb