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