Sha256: 544fa263ace9b2ed56f5b3b586a6f3187240998c335d051f1f6095b0e051eb1e

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

# encoding: utf-8

module TrangeFrange
  class Thousand < Struct.new :base
    include TrangeFrange::SuffixHelper

    THOUSANDS = %w[hiljada hiljade]

    def word
      order_condition.add { THOUSANDS[1] if suffix.gender? and !suffix.suffix_base.teen? }
      order_condition.add { THOUSANDS[0] }
      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/thousand.rb
trange_frange-0.1.4 lib/trange_frange/thousand.rb
trange_frange-0.1.3 lib/trange_frange/thousand.rb
trange_frange-0.1.2 lib/trange_frange/thousand.rb