Module: Phidgets::FFI::CPhidgetAccelerometer
- Defined in:
- lib/phidgets-ffi/ffi/accelerometer.rb
Class Method Summary collapse
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/phidgets-ffi/ffi/accelerometer.rb', line 16 def self.method_missing(method, *args, &block) if ::Phidgets::FFI.respond_to?("CPhidgetAccelerometer_#{method}".to_sym) if (rs = ::Phidgets::FFI.send("CPhidgetAccelerometer_#{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 |