class String

Class to create array (tokenize) from a string

Public Instance Methods

tokenize() click to toggle source
# File lib/evil-winrm.rb, line 957
         def tokenize
self.
    split(/\s(?=(?:[^'"]|'[^']*'|"[^"]*")*$)/).
    select {|s| not s.empty? }.
    map {|s| s.gsub(/(^ +)|( +$)|(^["']+)|(["']+$)/,'')}
end