Class: Packable::FilterCapture
- Inherits:
-
Object
- Object
- Packable::FilterCapture
- Defined in:
- lib/packable/packers.rb
Overview
Use to capture the blocks given to read/write
Instance Attribute Summary collapse
-
#options ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(options) ⇒ FilterCapture
constructor
A new instance of FilterCapture.
- #read(&block) ⇒ Object
- #write(&block) ⇒ Object
Constructor Details
#initialize(options) ⇒ FilterCapture
Returns a new instance of FilterCapture.
93 94 95 |
# File 'lib/packable/packers.rb', line 93 def initialize() self. = end |
Instance Attribute Details
#options ⇒ Object
:nodoc:
92 93 94 |
# File 'lib/packable/packers.rb', line 92 def @options end |
Instance Method Details
#read(&block) ⇒ Object
97 98 99 |
# File 'lib/packable/packers.rb', line 97 def read(&block) [:read_packed] = block end |
#write(&block) ⇒ Object
101 102 103 |
# File 'lib/packable/packers.rb', line 101 def write(&block) [:write_packed] = block.unbind end |