Class: RunLengthEncodingRb::Decoder
- Inherits:
-
Object
- Object
- RunLengthEncodingRb::Decoder
- Includes:
- DecoderMixin
- Defined in:
- lib/run_length_encoding_rb/decoder.rb
Overview
Decode run-length encoded data.
Constant Summary
Constants included from DecoderMixin
RunLengthEncodingRb::DecoderMixin::EXPECTED_ATTRIBUTES
Instance Method Summary collapse
-
#decode(data) ⇒ Array<Object>
Decode data.
Instance Method Details
#decode(data) ⇒ Array<Object>
Decode data.
21 22 23 24 25 |
# File 'lib/run_length_encoding_rb/decoder.rb', line 21 def decode(data) _raise_on_unsupported_type(data.class) unless data.is_a?(Array) _decode(data) end |