Parent

Methods

String

Public Instance Methods

to_cmd() click to toggle source

Conditionally quote a string if it contains whitespace or quotes.

# File lib/rexec/to_cmd.rb, line 23
def to_cmd
        if match(/\s|"|'/)
                self.dump
        else
                self
        end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.