Class: Puppet::Pops::Time::Timespan::Format::Segment
- Inherits:
-
Object
- Object
- Puppet::Pops::Time::Timespan::Format::Segment
show all
- Defined in:
- lib/puppet/pops/time/timespan.rb
Overview
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.
Instance Method Summary
collapse
Instance Method Details
#append_regexp(bld, ts) ⇒ Object
320
321
322
|
# File 'lib/puppet/pops/time/timespan.rb', line 320
def append_regexp(bld, ts)
raise NotImplementedError, "'#{self.class.name}' should implement #append_regexp"
end
|
#append_to(bld, ts) ⇒ Object
316
317
318
|
# File 'lib/puppet/pops/time/timespan.rb', line 316
def append_to(bld, ts)
raise NotImplementedError, "'#{self.class.name}' should implement #append_to"
end
|
#multiplier ⇒ Object
324
325
326
|
# File 'lib/puppet/pops/time/timespan.rb', line 324
def multiplier
raise NotImplementedError, "'#{self.class.name}' should implement #multiplier"
end
|