Class: DataMetaByteSer::RwHolder
- Inherits:
-
Object
- Object
- DataMetaByteSer::RwHolder
- Defined in:
- lib/dataMetaByteSer/util.rb
Overview
A holder for a read renderer and a write renderer, those come in pairs that have to be consistent so the data is read and written uniformly.
Instance Attribute Summary collapse
-
#r ⇒ Object
readonly
Read renderer.
-
#w ⇒ Object
readonly
Write renderer.
Instance Method Summary collapse
-
#initialize(readRenderer, writeRenderer) ⇒ RwHolder
constructor
Creates a new HDFS Reade and Write renderers pair.
Constructor Details
#initialize(readRenderer, writeRenderer) ⇒ RwHolder
Creates a new HDFS Reade and Write renderers pair.
24 |
# File 'lib/dataMetaByteSer/util.rb', line 24 def initialize(readRenderer, writeRenderer); @r = readRenderer; @w = writeRenderer end |
Instance Attribute Details
#r ⇒ Object (readonly)
Read renderer.
16 17 18 |
# File 'lib/dataMetaByteSer/util.rb', line 16 def r @r end |
#w ⇒ Object (readonly)
Write renderer.
20 21 22 |
# File 'lib/dataMetaByteSer/util.rb', line 20 def w @w end |