Module: TurnoutProxy
- Defined in:
- lib/turnout_proxy.rb,
lib/turnout_proxy/version.rb,
lib/turnout_proxy/host_chooser.rb
Defined Under Namespace
Classes: HostChooser
Constant Summary collapse
- VERSION =
File.read(version_file).freeze
Class Method Summary collapse
Class Method Details
.run(options = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/turnout_proxy.rb', line 6 def self.run( = {}) Proxy.start() do |conn| callbacks = HostChooser.new(conn, ) conn.on_data &callbacks.method(:on_data) end end |