Class: CongressForms::Actions::Yield
- Defined in:
- lib/congress_forms/actions.rb
Instance Attribute Summary
Attributes inherited from Base
#options, #required, #selector, #value
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Yield
constructor
A new instance of Yield.
- #perform(browser, params = {}) ⇒ Object
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 |