Class: Gem::Net::ReadAdapter
- Inherits:
-
Object
- Object
- Gem::Net::ReadAdapter
- Defined in:
- lib/rubygems/vendor/net-protocol/lib/net/protocol.rb
Overview
:nodoc: internal use only
Instance Method Summary collapse
- #<<(str) ⇒ Object
-
#initialize(block) ⇒ ReadAdapter
constructor
A new instance of ReadAdapter.
- #inspect ⇒ Object
Constructor Details
#initialize(block) ⇒ ReadAdapter
Returns a new instance of ReadAdapter.
517 518 519 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 517 def initialize(block) @block = block end |
Instance Method Details
#<<(str) ⇒ Object
525 526 527 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 525 def <<(str) call_block(str, &@block) if @block end |
#inspect ⇒ Object
521 522 523 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 521 def inspect "#<#{self.class}>" end |