Module: Phidgets::FFI::CPhidgetDictionary
- Defined in:
- lib/phidgets-ffi/ffi/dictionary.rb
Class Method Summary collapse
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/phidgets-ffi/ffi/dictionary.rb', line 39 def self.method_missing(method, *args, &block) if ::Phidgets::FFI.respond_to?("CPhidgetDictionary_#{method}".to_sym) if (rs = ::Phidgets::FFI.send("CPhidgetDictionary_#{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 |