class Ikra::AST::HashNode
Attributes
hash[R]
Public Class Methods
new(hash:)
click to toggle source
# File lib/ast/nodes.rb, line 309 def initialize(hash:) @hash = hash end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/ast/visitor.rb, line 62 def accept(visitor) visitor.visit_hash_node(self) end
clone()
click to toggle source
# File lib/ast/nodes.rb, line 313 def clone # TODO: Clone properly return HashNode.new(hash: @hash.clone) end
to_s()
click to toggle source
# File lib/ast/printer.rb, line 58 def to_s return "[HashNode: {" + hash.map do |key, value| "#{key.to_s} => #{value.to_s}" end.join(", ") + "}]" end