Class: Aruba::Platforms::UnixCommandString
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Aruba::Platforms::UnixCommandString
- Defined in:
- lib/aruba/platforms/unix_command_string.rb
Overview
This is a command which should be run
Instance Method Summary collapse
-
#initialize(cmd) ⇒ UnixCommandString
constructor
A new instance of UnixCommandString.
-
#to_a ⇒ Object
Convert to array.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(cmd) ⇒ UnixCommandString
Returns a new instance of UnixCommandString.
10 11 12 |
# File 'lib/aruba/platforms/unix_command_string.rb', line 10 def initialize(cmd) __setobj__ cmd end |
Instance Method Details
#to_a ⇒ Object
Convert to array
15 16 17 |
# File 'lib/aruba/platforms/unix_command_string.rb', line 15 def to_a Shellwords.split __getobj__ end |
#to_s ⇒ Object Also known as: inspect
20 21 22 |
# File 'lib/aruba/platforms/unix_command_string.rb', line 20 def to_s __getobj__.to_s end |