Class: Aruba::Platforms::WindowsCommandString
- Inherits:
-
Object
- Object
- Aruba::Platforms::WindowsCommandString
- Defined in:
- lib/aruba/platforms/windows_command_string.rb
Overview
This is a command which should be run
Instance Method Summary collapse
-
#initialize(command, *arguments) ⇒ WindowsCommandString
constructor
A new instance of WindowsCommandString.
-
#to_a ⇒ Object
Convert to array.
Constructor Details
#initialize(command, *arguments) ⇒ WindowsCommandString
Returns a new instance of WindowsCommandString.
11 12 13 14 |
# File 'lib/aruba/platforms/windows_command_string.rb', line 11 def initialize(command, *arguments) @command = command @arguments = arguments end |
Instance Method Details
#to_a ⇒ Object
Convert to array
17 18 19 |
# File 'lib/aruba/platforms/windows_command_string.rb', line 17 def to_a [@command, *@arguments] end |