Class: Puppet::Pops::Time::Timespan::Format::HourSegment
Instance Method Summary
collapse
#append_regexp, #append_value, #create_format, #nanoseconds, #set_use_total, #use_total?
Methods inherited from Segment
#append_regexp
Constructor Details
#initialize(padchar, width) ⇒ HourSegment
434
435
436
|
# File 'lib/puppet/pops/time/timespan.rb', line 434
def initialize(padchar, width)
super(padchar, width, 2)
end
|
Instance Method Details
#append_to(bld, ts) ⇒ Object
442
443
444
|
# File 'lib/puppet/pops/time/timespan.rb', line 442
def append_to(bld, ts)
append_value(bld, use_total? ? ts.total_hours : ts.hours)
end
|
#multiplier ⇒ Object
438
439
440
|
# File 'lib/puppet/pops/time/timespan.rb', line 438
def multiplier
NSECS_PER_HOUR
end
|