Module: Avm::Instances::Base::Processes

Defined in:
lib/avm/instances/base/processes.rb

Instance Method Summary collapse

Instance Method Details

#available_processesArray<Avm::Instances::Process>

Returns:



10
11
12
# File 'lib/avm/instances/base/processes.rb', line 10

def available_processes
  processes.select(&:available?)
end

#on_disabled_processes(&block) ⇒ Object



14
15
16
17
18
# File 'lib/avm/instances/base/processes.rb', line 14

def on_disabled_processes(&block)
  available_processes.inject(block) do |a, e|
    -> { e.on_disabled(&a) }
  end.call
end

#processesArray<Avm::Instances::Process>

Returns:



21
22
23
# File 'lib/avm/instances/base/processes.rb', line 21

def processes
  []
end