Module: TCD
- Defined in:
- lib/tcd.rb,
lib/tcd/header.rb,
lib/tcd/reader.rb,
lib/tcd/station.rb,
lib/tcd/version.rb,
lib/tcd/inference.rb,
lib/tcd/bit_buffer.rb,
lib/tcd/constituent.rb,
lib/tcd/lookup_tables.rb
Defined Under Namespace
Modules: Inference Classes: BitBuffer, Constituent, ConstituentData, FormatError, Header, LookupTables, Reader, Station, StationParser
Constant Summary collapse
- NULLSLACKOFFSET =
Null value constants per TCD spec
0xA00
- NULL_DIRECTION =
2560 - null indicator for slack offsets
361- VERSION =
"1.0.2"
Class Method Summary collapse
-
.open(path) ⇒ Object
Open a TCD file and return a Reader instance.
Class Method Details
.open(path) ⇒ Object
Open a TCD file and return a Reader instance
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/tcd.rb', line 10 def open(path) reader = Reader.new(path) if block_given? begin yield reader ensure reader.close end else reader end end |