class Ikra::AST::StringLiteralNode

Attributes

value[R]

Public Class Methods

new(value:) click to toggle source
# File lib/ast/nodes.rb, line 428
def initialize(value:)
    @value = value
end

Public Instance Methods

accept(visitor) click to toggle source
# File lib/ast/visitor.rb, line 122
def accept(visitor)
    visitor.visit_string_node(self)
end
clone() click to toggle source
# File lib/ast/nodes.rb, line 432
def clone
    return StringLiteralNode.new(value: @value)
end
to_s() click to toggle source
# File lib/ast/printer.rb, line 114
def to_s
    return "<#{value.to_s}>"
end