mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 09:40:13 +01:00
9 lines
204 B
Ruby
9 lines
204 B
Ruby
|
|
class DataTooShort < StandardError; end
|
||
|
|
|
||
|
|
class IoProcessor
|
||
|
|
# Does some fancy stuff unless the length of +io+ is shorter than 32
|
||
|
|
def process(io)
|
||
|
|
raise DataTooShort if io.read.length < 32
|
||
|
|
end
|
||
|
|
end
|