Class: Resolv::DNS::Requester::Sender
- Inherits:
-
Object
- Object
- Resolv::DNS::Requester::Sender
- Defined in:
- lib/resolv.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
-
#initialize(msg, data, sock, queue) ⇒ Sender
constructor
A new instance of Sender.
- #recv(msg) ⇒ Object
Constructor Details
#initialize(msg, data, sock, queue) ⇒ Sender
Returns a new instance of Sender.
556 557 558 559 560 561 |
# File 'lib/resolv.rb', line 556 def initialize(msg, data, sock, queue) @msg = msg @data = data @sock = sock @queue = queue end |
Instance Attribute Details
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
562 563 564 |
# File 'lib/resolv.rb', line 562 def queue @queue end |
Instance Method Details
#recv(msg) ⇒ Object
564 565 566 |
# File 'lib/resolv.rb', line 564 def recv(msg) @queue.push([msg, @data]) end |