Class: Selenium::WebDriver::Support::Guards::GuardCondition Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rb/lib/selenium/webdriver/support/guards/guard_condition.rb |
Overview
Guard
derived from RSpec example metadata.
Class Method Summary
- .new(name, condition = nil, &blk) ⇒ GuardCondition constructor Internal use only
Instance Attribute Summary
- #execution rw Internal use only
- #name rw Internal use only
Instance Method Summary
- #satisfied?(guard) ⇒ Boolean Internal use only
Constructor Details
.new(name, condition = nil, &blk) ⇒ GuardCondition
Instance Attribute Details
#execution (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/support/guards/guard_condition.rb', line 30
attr_accessor :name, :execution
#name (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/support/guards/guard_condition.rb', line 30
attr_accessor :name, :execution
Instance Method Details
#satisfied?(guard) ⇒ Boolean
# File 'rb/lib/selenium/webdriver/support/guards/guard_condition.rb', line 41
def satisfied?(guard) list = Array(guard.guarded[@name]) list.empty? || @execution.call(list) end