Module: Hx::Interop::Writer
- Included in:
- Interceptor::Write, ReaderWriter, StreamWriter
- Defined in:
- lib/interop/writer.rb
Overview
Anything to which you can write a message
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(*args, &block) ⇒ Object
7 8 9 |
# File 'lib/interop/writer.rb', line 7 def self.new(*args, &block) StreamWriter.new(*args, &block) end |
Instance Method Details
#<<(*args) ⇒ Object
17 18 19 |
# File 'lib/interop/writer.rb', line 17 def <<(*args) write *args end |
#write(message, *args) ⇒ Object
12 13 14 15 |
# File 'lib/interop/writer.rb', line 12 def write(, *args) _write Message.build(, *args) self end |