Module: WinFFI::LibBase
- Extended by:
- FFI::Library
- Included in:
- WinFFI, Advapi32, Comctl32, Comdlg32, Gdi32, Kernel32, Kernel32::Time, Msimg32, Netapi32, Ntdll, Shutdown, Thread, User32
- Defined in:
- lib/win-ffi/lib_base.rb
Class Method Summary collapse
Class Method Details
.extended(c) ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'lib/win-ffi/lib_base.rb', line 45 def self.extended(c) c.extend FFI::Library instance_variables.each do |v| value = instance_variable_get(v) value = value.dup unless value.is_a?(Fixnum) || value.is_a?(Symbol) c.instance_variable_set(v, value) end end |