repo.or.cz
/
monkeycharger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Upgraded Rails and RSpec
[monkeycharger.git]
/
vendor
/
plugins
/
rspec
/
examples
/
io_processor.rb
blob
6b15147b6574e4c8f06b9647a51279a1edd1755a
1
class DataTooShort < StandardError; end
2
3
class IoProcessor
4
# Does some fancy stuff unless the length of +io+ is shorter than 32
5
def process(io)
6
raise DataTooShort if io.read.length < 32
7
end
8
end