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
325
326
327
|
# File 'lib/puppet/pops/time/timespan.rb', line 325
def append_regexp(bld, ts)
raise NotImplementedError, "'#{self.class.name}' should implement #append_regexp"
end
|
#append_to(bld, ts) ⇒ Object
321
322
323
|
# File 'lib/puppet/pops/time/timespan.rb', line 321
def append_to(bld, ts)
raise NotImplementedError, "'#{self.class.name}' should implement #append_to"
end
|
#multiplier ⇒ Object
329
330
331
|
# File 'lib/puppet/pops/time/timespan.rb', line 329
def multiplier
raise NotImplementedError, "'#{self.class.name}' should implement #multiplier"
end
|