Sha256: 65a627814aa68d2c1f85618fc7be493a63e9f60b9092860c1323ed9eee42ba8c

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

# encoding: utf-8

module TrangeFrange
  class Base < Struct.new :base
    # range [10-19]
    def teen?
      member.ten == '1'
    end

    def gender?
      %w[1 2].include? member.one
    end

    def member
      @member ||= TrangeFrange::Member.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/base.rb
trange_frange-0.1.4 lib/trange_frange/base.rb
trange_frange-0.1.3 lib/trange_frange/base.rb
trange_frange-0.1.2 lib/trange_frange/base.rb