Class: TrangeFrange::Member
- Inherits:
-
Struct
- Object
- Struct
- TrangeFrange::Member
- Defined in:
- lib/trange_frange/member.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/member.rb', line 4 def base @base end |
Instance Method Details
#hundred ⇒ Object
13 14 15 |
# File 'lib/trange_frange/member.rb', line 13 def hundred base.size == 3 ? base[-3] : '0' end |
#one ⇒ Object
5 6 7 |
# File 'lib/trange_frange/member.rb', line 5 def one base[-1] end |
#ten ⇒ Object
9 10 11 |
# File 'lib/trange_frange/member.rb', line 9 def ten base.size >= 2 ? base[-2] : '0' end |