Module: GRCommons::AttachFunction

Included in:
GR3::FFI, GR::FFI
Defined in:
lib/gr_commons/attach_function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ffi_methodsObject (readonly)

Returns the value of attribute ffi_methods.



11
12
13
# File 'lib/gr_commons/attach_function.rb', line 11

def ffi_methods
  @ffi_methods
end

Instance Method Details

#attach_function(name, *args) ⇒ Object



5
6
7
8
9
# File 'lib/gr_commons/attach_function.rb', line 5

def attach_function(name, *args)
  @ffi_methods ||= []
  @ffi_methods << name
  super(name, *args)
end