class Fictive::Text::ReferenceNode

Public Class Methods

new(reference, symbol_table) click to toggle source
# File lib/fictive/text/reference_node.rb, line 4
def initialize(reference, symbol_table)
  @reference = reference.to_sym
  @symbol_table = symbol_table
end

Public Instance Methods

evaluate() click to toggle source
# File lib/fictive/text/reference_node.rb, line 9
def evaluate
  @symbol_table.fetch(@reference)
end