Class: Resolv::DNS::Requester::Sender
- Inherits:
-
Object
- Object
- Resolv::DNS::Requester::Sender
- Defined in:
- lib/resolv.rb
Overview
:nodoc:
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.
571 572 573 574 575 576 |
# File 'lib/resolv.rb', line 571 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.
577 578 579 |
# File 'lib/resolv.rb', line 577 def queue @queue end |
Instance Method Details
#recv(msg) ⇒ Object
579 580 581 |
# File 'lib/resolv.rb', line 579 def recv(msg) @queue.push([msg, @data]) end |