Method: Codec::Base#initialize
- Defined in:
- lib/codec/base.rb
#initialize(id, length) ⇒ Base
Returns a new instance of Base.
4 5 6 7 |
# File 'lib/codec/base.rb', line 4 def initialize(id,length) @length = length.to_i @id = id end |
Returns a new instance of Base.
4 5 6 7 |
# File 'lib/codec/base.rb', line 4 def initialize(id,length) @length = length.to_i @id = id end |