Module: Phidgets::FFI::CPhidgetTextLCD
- Defined in:
- lib/phidgets-ffi/ffi/text_lcd.rb
Class Method Summary collapse
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'lib/phidgets-ffi/ffi/text_lcd.rb', line 44 def self.method_missing(method, *args, &block) if ::Phidgets::FFI.respond_to?("CPhidgetTextLCD_#{method}".to_sym) if (rs = ::Phidgets::FFI.send("CPhidgetTextLCD_#{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 |