Sha256: cfe97844f8042069eddf79eb6778d6d2fcba7e84d9ac3256d1407151ba56db5a
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2005 Uttk team. All rights reserved. # License:: LGPL # Revision:: $Id: /w/fey/uttk/trunk/lib/uttk/streams.rb 8778 2005-09-26T04:34:48.103938Z ertai $ module Uttk module Streams # # Internal classes # autoloaded_module(__FILE__) end # module Streams end # module Uttk class Object def compare_stream ( stream ) to_s.compare_stream(stream) end def to_s_for_uttk_log self end end class NilClass def compare_stream ( stream ) true end def to_s_for_uttk_log false end end class Regexp def compare_stream ( stream ) stream.read =~ self end end class String def compare_stream ( stream ) self == stream.read end end class Pathname def compare_stream ( stream ) read.compare_stream(stream) end def to_s_for_uttk_log read end end class IO def compare_stream ( stream ) rewind read.compare_stream(stream) end def to_s_for_uttk_log rewind read end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uttk-0.4.5.0 | lib/uttk/streams.rb |
uttk-0.4.6.1 | lib/uttk/streams.rb |