lib/nbtfile/emitter.rb
# Emit a TAG_List token, call the block, and then emit a matching TAG_End
# token.
Emit a TAG_List token, call the block, and then emit a matching TAG_End
token.
Emit a TAG_List token call the block and then emit a matching TAG_End token .
def emit_list(name, type) 
    emit_token(TAG_List[name, type])
    begin
      yield
    ensure
      emit_token(TAG_End[nil, nil])
    end
  end
def emit_list ( name , type ) emit_token ( TAG_List [ name , type ] ) begin yield ensure emit_token ( TAG_End [ nil , nil ] ) end end
Emit a TAG_List token, call the block, and then emit a matching TAG_End
token.
Emit a TAG_List token call the block and then emit a matching TAG_End token .
#:yields:
name
<not_specific>
type
<not_specific>