Module: Steam::Browser::HtmlUnit::Handler

Defined in:
lib/steam/browser/html_unit/handler.rb

Defined Under Namespace

Classes: Alert, Base, Confirm

Class Method Summary collapse

Class Method Details

.create(type, proc) ⇒ Object



6
7
8
9
10
# File 'lib/steam/browser/html_unit/handler.rb', line 6

def create(type, proc)
  type    = type.to_s.camelize
  handler = self.const_get(type).new(proc)
  Rjb::bind(handler, "com.gargoylesoftware.htmlunit.#{type}Handler")
end