class Puppet::Pops::Time::Timespan::Format::HourSegment
Public Class Methods
new(padchar, width)
click to toggle source
Calls superclass method
Puppet::Pops::Time::Timespan::Format::ValueSegment::new
# File lib/puppet/pops/time/timespan.rb 432 def initialize(padchar, width) 433 super(padchar, width, 2) 434 end
Public Instance Methods
append_to(bld, ts)
click to toggle source
# File lib/puppet/pops/time/timespan.rb 440 def append_to(bld, ts) 441 append_value(bld, use_total? ? ts.total_hours : ts.hours) 442 end
multiplier()
click to toggle source
# File lib/puppet/pops/time/timespan.rb 436 def multiplier 437 NSECS_PER_HOUR 438 end