Sha256: ad52606821f76ac47e1d13980f4b454fb392fd56bb749232ff35d38dbccd77c6

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

# encoding: utf-8

module TrangeFrange
  class Suffix < Struct.new :base
    def gender?
      ('2'..'4').include? suffix_base.member.one
    end

    def one?
      suffix_base.member.one == '1'
    end

    def suffix_base
      @suffix_base ||= TrangeFrange::Base.new base
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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