Class: Elf::Dynamic::Type

Inherits:
Value
  • Object
show all
Defined in:
lib/elf/dynamic.rb

Defined Under Namespace

Classes: Unknown

Constant Summary collapse

OsSpecific =
0x60000000..0x6fffffff
ProcSpecific =
0x70000000..0x7fffffff
SpecialRanges =
{
  "DT_LOOS" => OsSpecific,
  "DT_LOPROC" => ProcSpecific
}

Instance Attribute Summary collapse

Attributes inherited from Value

#desc, #mnemonic, #val

Instance Method Summary collapse

Methods inherited from Value

#==, [], each, from_string, has_key?

Constructor Details

#initialize(val, params) ⇒ Type

Returns a new instance of Type.



42
43
44
45
46
# File 'lib/elf/dynamic.rb', line 42

def initialize(val, params)
  super(val, params)

  @attribute = params[2]
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



40
41
42
# File 'lib/elf/dynamic.rb', line 40

def attribute
  @attribute
end