Class: Array

Inherits:
Object
  • Object
show all
Defined in:
omf_ec/lib/omf_ec/backward/core_ext/array.rb

Overview

Copyright © 2012 National ICT Australia Limited (NICTA). This software may be used and distributed solely under the terms of the MIT license (License). You should find a copy of the License in LICENSE.TXT or at opensource.org/licenses/MIT. By downloading or using this software you accept the terms and the liability disclaimer in the License.

Instance Method Summary (collapse)

Instance Method Details

- (Object) exec(name)



31
32
33
34
35
# File 'omf_ec/lib/omf_ec/backward/core_ext/array.rb', line 31

def exec(name)
  if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
    self.each { |g| g.exec(name) }
  end
end

- (Object) startApplication(app_name)



13
14
15
16
17
# File 'omf_ec/lib/omf_ec/backward/core_ext/array.rb', line 13

def startApplication(app_name)
  if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
    self.each { |g| g.startApplication(app_name) }
  end
end

- (Object) startApplications



7
8
9
10
11
# File 'omf_ec/lib/omf_ec/backward/core_ext/array.rb', line 7

def startApplications
  if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
    self.each { |g| g.startApplications }
  end
end

- (Object) stopApplications



25
26
27
28
29
# File 'omf_ec/lib/omf_ec/backward/core_ext/array.rb', line 25

def stopApplications
  if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
    self.each { |g| g.stopApplications }
  end
end