Module: Steam::Browser
- Defined in:
- lib/steam/browser.rb,
lib/steam/browser/html_unit.rb,
lib/steam/browser/html_unit/drb.rb,
lib/steam/browser/html_unit/page.rb,
lib/steam/browser/html_unit/client.rb,
lib/steam/browser/html_unit/actions.rb,
lib/steam/browser/html_unit/handler.rb,
lib/steam/browser/html_unit/connection.rb,
lib/steam/browser/html_unit/web_response.rb
Defined Under Namespace
Classes: HtmlUnit
Class Method Summary collapse
Class Method Details
.create(*args) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/steam/browser.rb', line 12 def create(*args) = args.last.is_a?(Hash) ? args.pop : {} type = args.shift if args.first.is_a?(Symbol) connection = args.pop type ||= :html_unit type = const_get(type.to_s.camelize) type = type.const_get('Drb') if [:daemon] type.new(connection, :daemon => true) end |