mirror of
https://github.com/lloeki/ruby-tee.git
synced 2025-12-06 10:34:42 +01:00
gem, specs, README, and general consistency
This commit is contained in:
parent
31d6fa48c0
commit
ef0fffd385
18 changed files with 431 additions and 124 deletions
19
lib/tee/core_ext.rb
Normal file
19
lib/tee/core_ext.rb
Normal 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
3
lib/tee/version.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module Tee
|
||||
VERSION = '0.5'
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue