Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rexec/task.rb
Overview
Copyright © 2007 Samuel Williams. Released under the GNU GPLv3.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Instance Method Summary collapse
-
#to_arg ⇒ Object
Helper for turning a string into a shell argument.
- #to_cmd ⇒ Object
Instance Method Details
#to_arg ⇒ Object
Helper for turning a string into a shell argument
18 19 20 |
# File 'lib/rexec/task.rb', line 18 def to_arg match(/\s/) ? dump : self end |
#to_cmd ⇒ Object
22 23 24 |
# File 'lib/rexec/task.rb', line 22 def to_cmd return self end |