Class: AutomationObject::State::CloseScreen

Inherits:
ActionLoop
  • Object
show all
Defined in:
lib/automation_object/state/hook_actions/close_screen.rb

Overview

Close screen hook loop

Instance Attribute Summary

Attributes inherited from ActionLoop

#blue_prints, #composite, #driver, #loops

Instance Method Summary collapse

Methods inherited from ActionLoop

#initialize, #run

Constructor Details

This class inherits a constructor from AutomationObject::State::ActionLoop

Instance Method Details

#single_runObject



10
11
12
13
14
15
16
17
18
# File 'lib/automation_object/state/hook_actions/close_screen.rb', line 10

def single_run
  raise ScreenParentExpected unless composite.screen

  return false unless composite.screen.closed?

  composite.screen.deactivate

  true
end