Class: CongressForms::Actions::Yield

Inherits:
Base
  • Object
show all
Defined in:
lib/congress_forms/actions.rb

Instance Attribute Summary

Attributes inherited from Base

#options, #required, #selector, #value

Instance Method Summary collapse

Methods inherited from Base

#escape_css_attribute, #inspect, #max_length, #placeholder_value?, #select_options, #submit?

Constructor Details

#initialize(*args, &block) ⇒ Yield

Returns a new instance of Yield.



169
170
171
172
# File 'lib/congress_forms/actions.rb', line 169

def initialize(*args, &block)
  @block = block
  super
end

Instance Method Details

#perform(browser, params = {}) ⇒ Object



174
175
176
# File 'lib/congress_forms/actions.rb', line 174

def perform(browser, params={})
  @block.call
end