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)


470
471
472
# File 'lib/nbtfile.rb', line 470

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

#emit_token(io, token) ⇒ Object

Raises:

  • (RuntimeError)


466
467
468
# File 'lib/nbtfile.rb', line 466

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