Class: NBTFile::Private::EndEmitterState

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

Instance Method Summary collapse

Instance Method Details

#emit_item(io, value) ⇒ Object

Raises:

  • (RuntimeError)


500
501
502
# File 'lib/nbtfile.rb', line 500

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

#emit_token(io, token) ⇒ Object

Raises:

  • (RuntimeError)


496
497
498
# File 'lib/nbtfile.rb', line 496

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