class Rex::ElfParsey::ElfBase::GenericStruct
Attributes
struct[RW]
Public Class Methods
new(_struct)
click to toggle source
# File lib/rex/elfparsey/elfbase.rb, line 122 def initialize(_struct) self.struct = _struct end
Public Instance Methods
[](*args)
click to toggle source
Access a value by array
# File lib/rex/elfparsey/elfbase.rb, line 135 def [](*args) struct[*args] end
keys()
click to toggle source
Obtain an array of all fields
# File lib/rex/elfparsey/elfbase.rb, line 140 def keys struct.keys end
method_missing(meth, *args)
click to toggle source
# File lib/rex/elfparsey/elfbase.rb, line 144 def method_missing(meth, *args) v[meth.to_s] || (raise NoMethodError.new, meth) end
v()
click to toggle source
Access a value
# File lib/rex/elfparsey/elfbase.rb, line 129 def v struct.v end