Class: Excavate::FileMagic::Signature

Inherits:
Struct
  • Object
show all
Defined in:
lib/excavate/file_magic.rb

Overview

A magic-byte signature: where in the file to look, what bytes to expect, and which type they identify.

Instance Attribute Summary collapse

Instance Attribute Details

#magicObject

Returns the value of attribute magic

Returns:

  • (Object)

    the current value of magic



7
8
9
# File 'lib/excavate/file_magic.rb', line 7

def magic
  @magic
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



7
8
9
# File 'lib/excavate/file_magic.rb', line 7

def offset
  @offset
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



7
8
9
# File 'lib/excavate/file_magic.rb', line 7

def type
  @type
end