class Rex::MachParsey::GenericStruct
Attributes
struct[RW]
Public Class Methods
new(_struct)
click to toggle source
# File lib/rex/machparsey/machbase.rb, line 12 def initialize(_struct) self.struct = _struct end
Public Instance Methods
[](*args)
click to toggle source
Access a value by array
# File lib/rex/machparsey/machbase.rb, line 22 def [](*args) struct[*args] end
keys()
click to toggle source
Obtain an array of all fields
# File lib/rex/machparsey/machbase.rb, line 27 def keys struct.keys end
method_missing(meth, *args)
click to toggle source
# File lib/rex/machparsey/machbase.rb, line 31 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/machparsey/machbase.rb, line 17 def v struct.v end