Method: Rex::Struct2::CStruct#each_pair

Defined in:
lib/rex/struct2/c_struct.rb

#each_pair(&block) ⇒ Object

Iterate through all fields and values



172
173
174
175
176
# File 'lib/rex/struct2/c_struct.rb', line 172

def each_pair(&block)
  @name_table.each do |k|
    block.call(k, self.v[k])
  end
end