Class: ODDB::Import::RtfReader

Inherits:
RTFReader show all
Defined in:
lib/oddb/import/rtf.rb

Constant Summary

Constants inherited from RTFReader

RTFReader::TOKEN_CONTROL, RTFReader::TOKEN_EOF, RTFReader::TOKEN_GROUP, RTFReader::TOKEN_TEXT

Instance Method Summary collapse

Methods inherited from RTFReader

#get_token, #initialize

Constructor Details

This class inherits a constructor from RTFReader

Instance Method Details

#_read_charObject



17
18
19
20
21
22
# File 'lib/oddb/import/rtf.rb', line 17

def _read_char
	if @buffer.empty? && (x = @bufferstring.read(100))
		@buffer = x.split(//)
	end
	@buffer.shift
end