Class: ZIMG::JPEG::DAC
Overview
Define Arithmetic Coding
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Attributes inherited from Chunk
Instance Method Summary collapse
-
#initialize(marker, io) ⇒ DAC
constructor
A new instance of DAC.
- #inspect(*args) ⇒ Object
Methods inherited from Chunk
Methods inherited from Chunk
Constructor Details
#initialize(marker, io) ⇒ DAC
Returns a new instance of DAC.
271 272 273 274 |
# File 'lib/zimg/jpeg/chunks.rb', line 271 def initialize(marker, io) super @values = @data.unpack("C*").each_slice(2).to_a end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
269 270 271 |
# File 'lib/zimg/jpeg/chunks.rb', line 269 def values @values end |
Instance Method Details
#inspect(*args) ⇒ Object
276 277 278 |
# File 'lib/zimg/jpeg/chunks.rb', line 276 def inspect *args super.chop + format("values=%s>", values.inspect) end |