# File lib/tmail/port.rb, line 320 def ==( other ) StringPort === other and @buffer.equal? other.string end
# File lib/tmail/port.rb, line 348 def aopen( &block ) @buffer ||= '' StringOutput.new(@buffer, &block) end
# File lib/tmail/port.rb, line 359 def copy_to( port ) port.wopen {|f| f.write @buffer } end
# File lib/tmail/port.rb, line 326 def hash @buffer.object_id.hash end
# File lib/tmail/port.rb, line 330 def inspect "#<#{self.class}:id=#{sprintf '0x%x', @buffer.object_id}>" end
# File lib/tmail/port.rb, line 367 def move_to( port ) if StringPort === port str = @buffer port.instance_eval { @buffer = str } else copy_to port end remove end
# File lib/tmail/port.rb, line 353 def remove @buffer = nil end
# File lib/tmail/port.rb, line 334 def reproducible? true end
# File lib/tmail/port.rb, line 338 def ropen( &block ) @buffer or raise Errno::ENOENT, "#{inspect} is already removed" StringInput.open(@buffer, &block) end
# File lib/tmail/port.rb, line 310 def to_s @buffer.dup end
Generated with the Darkfish Rdoc Generator 2.