Method: Codec::Prefixedlength#initialize
- Defined in:
- lib/codec/prefix.rb
#initialize(id, length, content) ⇒ Prefixedlength
Returns a new instance of Prefixedlength.
3 4 5 6 7 8 |
# File 'lib/codec/prefix.rb', line 3 def initialize(id,length,content) # TODO : Check that value_codec has a null length attribute @length_codec = length @value_codec = content @id = id end |