Module: Phidgets::FFI::CPhidgetInterfaceKit
- Defined in:
- lib/phidgets-ffi/ffi/interface_kit.rb
Class Method Summary collapse
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/phidgets-ffi/ffi/interface_kit.rb', line 31 def self.method_missing(method, *args, &block) if ::Phidgets::FFI.respond_to?("CPhidgetInterfaceKit_#{method}".to_sym) if (rs = ::Phidgets::FFI.send("CPhidgetInterfaceKit_#{method}".to_sym, *args, &block)) != 0 raise Phidgets::Error.exception_for(rs), Phidgets::FFI.error_description(rs) end else super(method, *args, &block) end end |