class Puppet::Pops::Time::Timespan::Format::LiteralSegment
Public Class Methods
new(literal)
click to toggle source
# File lib/puppet/pops/time/timespan.rb 336 def initialize(literal) 337 @literal = literal 338 end
Public Instance Methods
append_regexp(bld)
click to toggle source
# File lib/puppet/pops/time/timespan.rb 332 def append_regexp(bld) 333 bld << "(#{Regexp.escape(@literal)})" 334 end
append_to(bld, ts)
click to toggle source
# File lib/puppet/pops/time/timespan.rb 340 def append_to(bld, ts) 341 bld << @literal 342 end
concat(codepoint)
click to toggle source
# File lib/puppet/pops/time/timespan.rb 344 def concat(codepoint) 345 @literal.concat(codepoint) 346 end
nanoseconds()
click to toggle source
# File lib/puppet/pops/time/timespan.rb 348 def nanoseconds 349 0 350 end