Sha256: 8a737492e0fc31833731fdac4cee996f62240926bb401ea5cd823a471bdd08fa
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2005 Uttk team. All rights reserved. # License:: LGPL # Revision:: $Id: /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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uttk-0.3.1.2 | lib/uttk/streams.rb |
uttk-0.3.6.1 | lib/uttk/streams.rb |
uttk-0.3.5.0 | lib/uttk/streams.rb |