Flowdock
method

write_message_by_block

Importance_0
v1_8_6_287 - Show latest stable - 0 notes - Class: Net::InternetMessageIO
write_message_by_block(&block) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/net/protocol.rb, line 267
    def write_message_by_block(&block)
      LOG 'writing message from block'
      LOG_off()
      len = writing {
        using_each_crlf_line {
          begin
            block.call(WriteAdapter.new(self, :write_message_0))
          rescue LocalJumpError
            # allow `break' from writer block
          end
        }
      }
      LOG_on()
      LOG "wrote #{len} bytes"
      len
    end
Register or log in to add new notes.