Class: AutomationObject::State::PossibleScreenChanges
- Inherits:
-
ActionLoop
- Object
- ActionLoop
- AutomationObject::State::PossibleScreenChanges
- Defined in:
- lib/automation_object/state/hook_actions/possible_screen_changes.rb
Overview
Possible screen changes hook loop
Instance Attribute Summary
Attributes inherited from ActionLoop
#blue_prints, #composite, #driver, #loops
Instance Method Summary collapse
Methods inherited from ActionLoop
Constructor Details
This class inherits a constructor from AutomationObject::State::ActionLoop
Instance Method Details
#single_run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/automation_object/state/hook_actions/possible_screen_changes.rb', line 9 def single_run return false unless driver.document_complete? blue_prints.each do |possible_screen_name| new_screen = composite.top.screens[possible_screen_name] next unless new_screen.load.live? != false composite.screen.deactivate new_screen.activate return true end false end |