lib/darkext/string.rb
# Executes the string with system
# * :background => true to run command in the background using & (currently only works on *nix systems)
# * :capture => true to capture the output. If :capture => true, background is voided
Executes the string with system
:background => true to run command in the background using & (currently only works on *nix systems)
:capture => true to capture the output. If :capture => true, background is voided
Executes the string with system : background = > true to run command in the background using & ( currently only works on * nix systems ) : capture = > true to capture the output . If : capture = > true background is voided
def exec(opts = {})
    opts.with_defaults!(:background => false, :capture => false)
    return `#{self}` if opts[:capture]
    return fork { system(self) } if opts[:background]
    return system(self)
  end
def exec ( opts = { } ) opts . with_defaults! ( :background => false , :capture => false ) return ` #{ self } ` if opts [ :capture ] return fork { system ( self ) } if opts [ :background ] return system ( self ) end
Executes the string with system
 :background => true to run command in the background using & (currently only works on *nix systems)
 :capture => true to capture the output.
Executes the string with system : background = > true to run command in the background using & ( currently only works on * nix systems ) : capture = > true to capture the output .
opts
<not_specific>