Method: Psych::Coder#map

Defined in:
lib/psych/coder.rb

#map(tag = @tag, style = @style) {|_self| ... } ⇒ Object

Emit a map. The coder will be yielded to the block.

Yields:

  • (_self)

Yield Parameters:

  • _self (Psych::Coder)

    the object that the method was called on



33
34
35
36
37
38
# File 'lib/psych/coder.rb', line 33

def map tag = @tag, style = @style
  @tag   = tag
  @style = style
  yield self if block_given?
  @map
end