module AutomationObject::BluePrint::Composite::ContainerHelper
Screen
composite class
Public Instance Methods
changes()
click to toggle source
Get possible changes @return [Array<Symbol>]
# File lib/automation_object/blue_print/composite/helpers/container_helper.rb, line 36 def changes changes = [] elements.merge(element_arrays).merge(element_hashes).each_value do |element| changes += element.changes end changes.uniq.compact end
element_arrays()
click to toggle source
@return [Hash<AutomationObject::BluePrint::Composite::ElementArray>]
# File lib/automation_object/blue_print/composite/helpers/container_helper.rb, line 25 def element_arrays adapter.element_arrays end
element_hashes()
click to toggle source
@return [Hash<AutomationObject::BluePrint::Composite::ElementHash>]
# File lib/automation_object/blue_print/composite/helpers/container_helper.rb, line 30 def element_hashes adapter.element_hashes end
element_to_container(name)
click to toggle source
@param name [Symbol] name of container you want to go to @return [Symbol, Symbol] name and type of element
# File lib/automation_object/blue_print/composite/helpers/container_helper.rb, line 47 def element_to_container(name) elements.merge(element_arrays).merge(element_hashes).each do |element_name, element| next unless element.changes.include?(name) element_type = nil case element when Element element_type = :elements when ElementArray element_type = :element_arrays when ElementHash element_type = :element_hashes end return element_name, element_type end [nil, nil] end
elements()
click to toggle source
@return [Hash<AutomationObject::BluePrint::Composite::Element>]
# File lib/automation_object/blue_print/composite/helpers/container_helper.rb, line 20 def elements adapter.elements end
included_views()
click to toggle source
@return [Array<Symbol>]
# File lib/automation_object/blue_print/composite/helpers/container_helper.rb, line 10 def included_views adapter.included_views end
load()
click to toggle source
@return [AutomationObject::BluePrint::Composite::Hook]
# File lib/automation_object/blue_print/composite/helpers/container_helper.rb, line 15 def load adapter.load end