Module: Phidgets::FFI::CPhidgetGPS
- Defined in:
- lib/phidgets-ffi/ffi/gps.rb
Class Method Summary collapse
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/phidgets-ffi/ffi/gps.rb', line 21 def self.method_missing(method, *args, &block) if ::Phidgets::FFI.respond_to?("CPhidgetGPS_#{method}".to_sym) if (rs = ::Phidgets::FFI.send("CPhidgetGPS_#{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 |