Method: Fiddle::CStruct#to_h

Defined in:
lib/fiddle/struct.rb

#to_hObject



32
33
34
35
36
37
38
# File 'lib/fiddle/struct.rb', line 32

def to_h
  hash = {}
  each_pair do |name, value|
    hash[name] = unstruct(value)
  end
  hash
end