Class: IO

Inherits:
Object
  • Object
show all
Defined in:
lib/midilib/io/midifile.rb

Instance Method Summary collapse

Instance Method Details

#readbyteObject


5
6
7
8
9
# File 'lib/midilib/io/midifile.rb', line 5

def readbyte
  c = getc()
  raise 'unexpected EOF' unless c
  c
end