Class: Puppet::Pops::Time::Timespan::Format::Segment

Inherits:
Object
  • Object
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.

Direct Known Subclasses

LiteralSegment, ValueSegment

Instance Method Summary collapse

Instance Method Details

#append_regexp(bld, ts) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

#multiplierObject

Raises:

  • (NotImplementedError)


329
330
331
# File 'lib/puppet/pops/time/timespan.rb', line 329

def multiplier
  raise NotImplementedError, "'#{self.class.name}' should implement #multiplier"
end