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)


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

Raises:

  • (NotImplementedError)


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

#multiplierObject

Raises:

  • (NotImplementedError)


324
325
326
# File 'lib/puppet/pops/time/timespan.rb', line 324

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