Class: AutomationObject::BluePrint::HashAdapter::Hook

Inherits:
Composite
  • Object
show all
Defined in:
lib/automation_object/blue_print/hash_adapter/hook.rb

Overview

Hook composite

Instance Method Summary collapse

Instance Method Details

#live?Array<HookElementRequirements>

Returns array of element requirements

Returns:



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/automation_object/blue_print/hash_adapter/hook.rb', line 25

def live?
  return @live if defined? @live

  children = hash[:live?]
  children = children.is_a?(Array) ? children : []

  @live = create_array_children(:live, children,
                                interface: HookElementRequirements,
                                location: location + '[live?]')
  @live
end