Method: Psych::Nodes::Mapping#initialize

Defined in:
lib/psych/nodes/mapping.rb

#initialize(anchor = nil, tag = nil, implicit = true, style = BLOCK) ⇒ Mapping

Create a new Psych::Nodes::Mapping object.

anchor is the anchor associated with the map or nil. tag is the tag associated with the map or nil. implicit is a boolean indicating whether or not the map was implicitly started. style is an integer indicating the mapping style.

See Also

See also Psych::Handler#start_mapping



48
49
50
51
52
53
54
# File 'lib/psych/nodes/mapping.rb', line 48

def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
  super()
  @anchor   = anchor
  @tag      = tag
  @implicit = implicit
  @style    = style
end