Class: Goru::Routines::Channels::Writable

Inherits:
Goru::Routines::Channel show all
Defined in:
lib/goru/routines/channels/writable.rb

Overview

public

Instance Attribute Summary

Attributes inherited from Goru::Routine

#state, #status

Instance Method Summary collapse

Methods inherited from Goru::Routines::Channel

#channel_closed, #channel_read, #channel_received, #channel_reopened

Methods inherited from Goru::Routine

#call, #finished, #reactor=, #result, #sleep, #update, #wake

Constructor Details

#initializeWritable

Returns a new instance of Writable.



11
12
13
14
15
# File 'lib/goru/routines/channels/writable.rb', line 11

def initialize(...)
  super

  update_status
end

Instance Method Details

#<<(message) ⇒ Object

public


19
20
21
# File 'lib/goru/routines/channels/writable.rb', line 19

def <<(message)
  @channel << message
end