Class: Puppet::Pops::Time::Timespan::Format::MinuteSegment
- Inherits:
-
ValueSegment
- Object
- Segment
- ValueSegment
- Puppet::Pops::Time::Timespan::Format::MinuteSegment
- Defined in:
- lib/puppet/pops/time/timespan.rb
Instance Method Summary collapse
- #append_to(bld, ts) ⇒ Object
-
#initialize(padchar, width) ⇒ MinuteSegment
constructor
A new instance of MinuteSegment.
- #multiplier ⇒ Object
Methods inherited from ValueSegment
#append_regexp, #append_value, #create_format, #nanoseconds, #set_use_total, #use_total?
Methods inherited from Segment
Constructor Details
#initialize(padchar, width) ⇒ MinuteSegment
Returns a new instance of MinuteSegment.
448 449 450 |
# File 'lib/puppet/pops/time/timespan.rb', line 448 def initialize(padchar, width) super(padchar, width, 2) end |
Instance Method Details
#append_to(bld, ts) ⇒ Object
456 457 458 |
# File 'lib/puppet/pops/time/timespan.rb', line 456 def append_to(bld, ts) append_value(bld, use_total? ? ts.total_minutes : ts.minutes) end |
#multiplier ⇒ Object
452 453 454 |
# File 'lib/puppet/pops/time/timespan.rb', line 452 def multiplier NSECS_PER_MIN end |