Class: Net::ReadAdapter
- Inherits:
-
Object
- Object
- Net::ReadAdapter
- Defined in:
- lib/mechanize/net-overrides/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.
353 354 355 |
# File 'lib/mechanize/net-overrides/net/protocol.rb', line 353 def initialize(block) @block = block end |
Instance Method Details
#<<(str) ⇒ Object
361 362 363 |
# File 'lib/mechanize/net-overrides/net/protocol.rb', line 361 def <<(str) call_block(str, &@block) if @block end |
#inspect ⇒ Object
357 358 359 |
# File 'lib/mechanize/net-overrides/net/protocol.rb', line 357 def inspect "#<#{self.class}>" end |