changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/examples/pure/io_processor.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1class DataTooShort < StandardError; end
2
3class 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
8end