Class: ZIMG::JPEG::Garbage

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

Instance Attribute Summary

Attributes inherited from Chunk

#data, #marker, #size

Instance Method Summary collapse

Methods inherited from Chunk

#crc, #type

Constructor Details

#initialize(data) ⇒ Garbage

rubocop:disable Lint/MissingSuper



320
321
322
323
# File 'lib/zimg/jpeg/chunks.rb', line 320

def initialize(data) # rubocop:disable Lint/MissingSuper
  @data = data
  @size = data.size
end

Instance Method Details

#cli_colorObject



329
330
331
# File 'lib/zimg/jpeg/chunks.rb', line 329

def cli_color
  nil
end

#export(*_args) ⇒ Object



325
326
327
# File 'lib/zimg/jpeg/chunks.rb', line 325

def export *_args
  @data
end

#inspect(*_args) ⇒ Object



333
334
335
# File 'lib/zimg/jpeg/chunks.rb', line 333

def inspect *_args
  super.red
end