gem, specs, README, and general consistency

This commit is contained in:
Loic Nageleisen 2013-10-22 18:23:24 +02:00
parent 31d6fa48c0
commit ef0fffd385
18 changed files with 431 additions and 124 deletions

19
lib/tee/core_ext.rb Normal file
View file

@ -0,0 +1,19 @@
require 'tee'
class IO
include Chunkable
include Digestable
include Tee
end
class StringIO
include IO::Chunkable
include IO::Digestable
include IO::Tee
end
module Enumerable
def tee(*procs)
Enumerable::Tee.instance_method(:tee).bind(self).call(*procs)
end
end

3
lib/tee/version.rb Normal file
View file

@ -0,0 +1,3 @@
module Tee
VERSION = '0.5'
end