Class: ZXing::Client
- Inherits:
-
Object
- Object
- ZXing::Client
- Defined in:
- lib/zxing/client.rb
Class Method Summary collapse
Class Method Details
.new ⇒ Object
8 9 10 11 12 |
# File 'lib/zxing/client.rb', line 8 def self.new port = ENV['ZXING_PORT'] || find_available_port setup_drb_server(port) unless ENV['ZXING_PORT'] && responsive?(port) DRbObject.new_with_uri("druby://127.0.0.1:#{port}") end |