Class | TMail::StringPort |
In: |
lib/tmail/port.rb
|
Parent: | Port |
# 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 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 338 def ropen( &block ) @buffer or raise Errno::ENOENT, "#{inspect} is already removed" StringInput.open(@buffer, &block) end