Method: AutomationObject::BluePrint::Composite::ContainerHelper#element_to_container
- Defined in:
- lib/automation_object/blue_print/composite/helpers/container_helper.rb
#element_to_container(name) ⇒ Symbol
Returns name and type of element.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# 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 |