Sha256: d9ad0292cf914dbeac9582644c9cabf46ad55dfbcdd7e4681110f0409c57ab24
Contents?: true
Size: 324 Bytes
Versions: 4
Compression:
Stored size: 324 Bytes
Contents
module Lignite class Connection # @return [Connection] Try a {Usb} connection first, then a {Bluetooth} one. def self.create @c ||= begin Usb.new rescue NoUsbDevice Bluetooth.new end end # FIXME: how to close and reopen a connection? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lignite-0.2.0 | lib/lignite/connection.rb |
lignite-0.1.2 | lib/lignite/connection.rb |
lignite-0.1.1 | lib/lignite/connection.rb |
lignite-0.1.0 | lib/lignite/connection.rb |