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
323 def append_regexp(bld, ts)
324   raise NotImplementedError, "'#{self.class.name}' should implement #append_regexp"
325 end
append_to(bld, ts) click to toggle source
    # File lib/puppet/pops/time/timespan.rb
319 def append_to(bld, ts)
320   raise NotImplementedError, "'#{self.class.name}' should implement #append_to"
321 end
multiplier() click to toggle source
    # File lib/puppet/pops/time/timespan.rb
327 def multiplier
328   raise NotImplementedError, "'#{self.class.name}' should implement #multiplier"
329 end