]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/examples/pure/io_processor.rb
fix node relations bug (thanks Dave!)
[rails.git] / vendor / gems / rspec-1.1.2 / examples / pure / io_processor.rb
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