module AutomationObject::State::ContainerHelper
Attributes
active[RW]
Whether or not modal is active
Public Instance Methods
active?()
click to toggle source
@return [Boolean] screen is active or not
# File lib/automation_object/state/helpers/container_helper.rb, line 10 def active? @active ||= false end
changes()
click to toggle source
@return [Array<Symbol>]
# File lib/automation_object/state/helpers/container_helper.rb, line 26 def changes blue_prints.changes end
element_to_container(name)
click to toggle source
@param name [Symbol] name of container you want to go to @return [AutomationObject::State::Element]
# File lib/automation_object/state/helpers/container_helper.rb, line 32 def element_to_container(name) element_name, element_type = blue_prints.element_to_container(name) return unless element_name || element_type send(element_type)[element_name] end
go()
click to toggle source
Automatically find a way to go to this screen @return [Boolean]
# File lib/automation_object/state/helpers/container_helper.rb, line 16 def go if active? utilize return true end AutomaticRouting.new(top, name).route end
reset()
click to toggle source
# File lib/automation_object/state/helpers/container_helper.rb, line 39 def reset elements.values.map(&:reset) element_arrays.values.map(&:reset) element_hashes.values.map(&:reset) end