Class: NBTFile::EndWriterState

Inherits:
Object
  • Object
show all
Defined in:
lib/nbtfile.rb

Instance Method Summary collapse

Instance Method Details

#emit_item(io, value) ⇒ Object

Raises:

  • (RuntimeError)


472
473
474
# File 'lib/nbtfile.rb', line 472

def emit_item(io, value)
  raise RuntimeError, "not in a list"
end

#emit_token(io, token) ⇒ Object

Raises:

  • (RuntimeError)


468
469
470
# File 'lib/nbtfile.rb', line 468

def emit_token(io, token)
  raise RuntimeError, "unexpected token #{token.class} after end"
end