class Puppet::Pops::Time::Timespan::Format::Segment

A segment is either a string that will be represented literally in the formatted timestamp or a value that corresponds to one of the possible format characters.

Public Instance Methods

append_regexp(bld, ts) click to toggle source
    # File lib/puppet/pops/time/timespan.rb
322 def append_regexp(bld, ts)
323   raise NotImplementedError, "'#{self.class.name}' should implement #append_regexp"
324 end
append_to(bld, ts) click to toggle source
    # File lib/puppet/pops/time/timespan.rb
318 def append_to(bld, ts)
319   raise NotImplementedError, "'#{self.class.name}' should implement #append_to"
320 end
multiplier() click to toggle source
    # File lib/puppet/pops/time/timespan.rb
326 def multiplier
327   raise NotImplementedError, "'#{self.class.name}' should implement #multiplier"
328 end