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.
9 10 11 12 |
# File 'lib/aruba/platforms/windows_command_string.rb', line 9 def initialize(command, *arguments) @command = command @arguments = arguments end |
Instance Method Details
#to_a ⇒ Object
Convert to array
15 16 17 |
# File 'lib/aruba/platforms/windows_command_string.rb', line 15 def to_a [@command, *@arguments] end |