Class: ZIMG::JPEG::DNL

Inherits:
Chunk show all
Defined in:
lib/zimg/jpeg/chunks.rb

Instance Attribute Summary collapse

Attributes inherited from Chunk

#data, #marker, #size

Instance Method Summary collapse

Methods inherited from Chunk

#crc, #export, #type

Methods inherited from Chunk

#cli_color

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_linesObject

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