Class: Test::Right::WidgetProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/test/right/widget_proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, name) ⇒ WidgetProxy

Returns a new instance of WidgetProxy.



4
5
6
7
# File 'lib/test/right/widget_proxy.rb', line 4

def initialize(klass, name)
  @klass = klass
  @name = name
end

Instance Method Details

#new(driver) ⇒ Object



9
10
11
# File 'lib/test/right/widget_proxy.rb', line 9

def new(driver)
  @klass.new(driver, @name)
end