Module: Avm::Instances::Base::Processes
- Defined in:
- lib/avm/instances/base/processes.rb
Instance Method Summary collapse
- #available_processes ⇒ Array<Avm::Instances::Process>
- #on_disabled_processes(&block) ⇒ Object
- #processes ⇒ Array<Avm::Instances::Process>
Instance Method Details
#available_processes ⇒ Array<Avm::Instances::Process>
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 |
#processes ⇒ Array<Avm::Instances::Process>
21 22 23 |
# File 'lib/avm/instances/base/processes.rb', line 21 def processes [] end |