Class: Lignite::Connection
- Inherits:
-
Object
- Object
- Lignite::Connection
- Defined in:
- lib/lignite/connection.rb,
lib/lignite/connection/usb.rb,
lib/lignite/connection/bluetooth.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.create ⇒ Connection
4 5 6 7 8 9 10 |
# File 'lib/lignite/connection.rb', line 4 def self.create @c ||= begin Usb.new rescue NoUsbDevice Bluetooth.new end end |