Class: TrangeFrange::Suffix
- Inherits:
-
Struct
- Object
- Struct
- TrangeFrange::Suffix
- Defined in:
- lib/trange_frange/suffix.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
Instance Method Summary collapse
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base
4 5 6 |
# File 'lib/trange_frange/suffix.rb', line 4 def base @base end |
Instance Method Details
#gender? ⇒ Boolean
5 6 7 |
# File 'lib/trange_frange/suffix.rb', line 5 def gender? ('2'..'4').include? suffix_base.member.one end |
#one? ⇒ Boolean
9 10 11 |
# File 'lib/trange_frange/suffix.rb', line 9 def one? suffix_base.member.one == '1' end |
#suffix_base ⇒ Object
13 14 15 |
# File 'lib/trange_frange/suffix.rb', line 13 def suffix_base @suffix_base ||= TrangeFrange::Base.new base end |