Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- 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
- #exec(name) ⇒ Object
- #startApplication(app_name) ⇒ Object
- #startApplications ⇒ Object
- #stopApplications ⇒ Object
Instance Method Details
#exec(name) ⇒ Object
31 32 33 34 35 |
# File '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 |
#startApplication(app_name) ⇒ Object
13 14 15 16 17 |
# File '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 |