Class: Baykit::BayServer::Common::WriteUnit
- Inherits:
-
Object
- Object
- Baykit::BayServer::Common::WriteUnit
- Defined in:
- lib/baykit/bayserver/common/write_unit.rb
Instance Attribute Summary collapse
-
#adr ⇒ Object
readonly
Returns the value of attribute adr.
-
#buf ⇒ Object
readonly
Returns the value of attribute buf.
-
#listener ⇒ Object
readonly
Returns the value of attribute listener.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
- #done ⇒ Object
-
#initialize(buf, adr, tag, &lis) ⇒ WriteUnit
constructor
A new instance of WriteUnit.
Constructor Details
#initialize(buf, adr, tag, &lis) ⇒ WriteUnit
Returns a new instance of WriteUnit.
13 14 15 16 17 18 |
# File 'lib/baykit/bayserver/common/write_unit.rb', line 13 def initialize(buf, adr, tag, &lis) @buf = buf @adr = adr @tag = tag @listener = lis end |
Instance Attribute Details
#adr ⇒ Object (readonly)
Returns the value of attribute adr.
9 10 11 |
# File 'lib/baykit/bayserver/common/write_unit.rb', line 9 def adr @adr end |
#buf ⇒ Object (readonly)
Returns the value of attribute buf.
8 9 10 |
# File 'lib/baykit/bayserver/common/write_unit.rb', line 8 def buf @buf end |
#listener ⇒ Object (readonly)
Returns the value of attribute listener.
11 12 13 |
# File 'lib/baykit/bayserver/common/write_unit.rb', line 11 def listener @listener end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
10 11 12 |
# File 'lib/baykit/bayserver/common/write_unit.rb', line 10 def tag @tag end |
Instance Method Details
#done ⇒ Object
20 21 22 23 24 |
# File 'lib/baykit/bayserver/common/write_unit.rb', line 20 def done() if @listener != nil @listener.call() end end |