Class: ZIMG::JPEG::DNL
Instance Attribute Summary collapse
-
#number_of_lines ⇒ Object
same as image.height.
Attributes inherited from Chunk
Instance Method Summary collapse
-
#initialize(marker, io) ⇒ DNL
constructor
A new instance of DNL.
- #inspect(*args) ⇒ Object
Methods inherited from Chunk
Methods inherited from Chunk
Constructor Details
#initialize(marker, io) ⇒ DNL
Returns a new instance of DNL.
290 291 292 293 |
# File 'lib/zimg/jpeg/chunks.rb', line 290 def initialize(marker, io) super @number_of_lines = @data.unpack1("n") end |
Instance Attribute Details
#number_of_lines ⇒ Object
same as image.height
288 289 290 |
# File 'lib/zimg/jpeg/chunks.rb', line 288 def number_of_lines @number_of_lines end |
Instance Method Details
#inspect(*args) ⇒ Object
295 296 297 |
# File 'lib/zimg/jpeg/chunks.rb', line 295 def inspect *args super.chop + format("number_of_lines=%d >", number_of_lines) end |