Class: NBTFile::Private::TopEmitterState

Inherits:
Object
  • Object
show all
Includes:
EmitMethods, Tokens
Defined in:
lib/nbtfile.rb

Instance Method Summary collapse

Methods included from EmitMethods

#emit_byte, #emit_byte_array, #emit_double, #emit_float, #emit_int, #emit_integer, #emit_list_header, #emit_long, #emit_short, #emit_string, #emit_type, #emit_value

Methods included from CommonMethods

#sign_bit

Instance Method Details

#emit_token(io, token) ⇒ Object



422
423
424
425
426
427
428
429
430
431
# File 'lib/nbtfile.rb', line 422

def emit_token(io, token)
  case token
  when TAG_Compound
    emit_type(io, token.class)
    emit_string(io, token.name)
    end_state = EndEmitterState.new()
    next_state = CompoundEmitterState.new(end_state, nil)
    next_state
  end
end