Class: Psych::Pure::Emitter::HashNode

Inherits:
Node
  • Object
show all
Defined in:
lib/psych/pure.rb

Overview

Represents a hash of nodes.

Instance Attribute Summary collapse

Attributes inherited from Node

#psych_node, #value

Instance Method Summary collapse

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Psych::Pure::Emitter::Node

Instance Attribute Details

#anchorObject

Returns the value of attribute anchor.



4133
4134
4135
# File 'lib/psych/pure.rb', line 4133

def anchor
  @anchor
end

#tagObject

Returns the value of attribute tag.



4133
4134
4135
# File 'lib/psych/pure.rb', line 4133

def tag
  @tag
end

Instance Method Details

#accept(visitor) ⇒ Object



4135
4136
4137
# File 'lib/psych/pure.rb', line 4135

def accept(visitor)
  visitor.visit_hash(self)
end