class Semlogr::Templates::TextToken

Constants

EMPTY

Attributes

text[RW]

Public Class Methods

new(text) click to toggle source
# File lib/semlogr/templates/text_token.rb, line 8
def initialize(text)
  @text = text
end

Public Instance Methods

==(other) click to toggle source
# File lib/semlogr/templates/text_token.rb, line 16
def ==(other)
  return false unless other
  return false unless other.respond_to?(:text)

  @text == other.text
end
eql?(other) click to toggle source
# File lib/semlogr/templates/text_token.rb, line 23
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/semlogr/templates/text_token.rb, line 27
def hash
  @text.hash
end
render(output, _properties) click to toggle source
# File lib/semlogr/templates/text_token.rb, line 12
def render(output, _properties)
  output << @text
end