# File lib/tmail/port.rb, line 59 def ==( other ) other.respond_to?(:filename) and @filename == other.filename end
# File lib/tmail/port.rb, line 90 def aopen( &block ) File.open(@filename, 'a', &block) end
# File lib/tmail/port.rb, line 117 def copy_to( port ) if FilePort === port copy_file @filename, port.filename else File.open(@filename) {|r| port.wopen {|w| while s = r.sysread(4096) w.write << s end } } end end
# File lib/tmail/port.rb, line 69 def inspect "#<#{self.class}:#{@filename}>" end
# File lib/tmail/port.rb, line 106 def move_to( port ) begin File.link @filename, port.filename rescue Errno::EXDEV copy_to port end File.unlink @filename end
# File lib/tmail/port.rb, line 95 def read_all ropen {|f| return f.read } end
# File lib/tmail/port.rb, line 102 def remove File.unlink @filename end
Generated with the Darkfish Rdoc Generator 2.