module Curl
Public Class Methods
encode_form(form)
click to toggle source
# File lib/curl/spawn.rb, line 55 def self.encode_form(form) URI.encode_www_form(form) end
Also aliased as: form_encode, encode_www_form
encode_form_component(str, enc=nil)
click to toggle source
# File lib/curl/spawn.rb, line 63 def self.encode_form_component(str, enc=nil) URL.encode_www_form_component(str, enc) end
Also aliased as: encode_www_form_component
encode_url(str)
click to toggle source
# File lib/curl/spawn.rb, line 48 def self.encode_url(str) ERB::Util.url_encode(str) end
Also aliased as: url_encode
spawn(*supplied_argv, &block)
click to toggle source
Synopsis: Curses.spawn( *positional_args [, spawn_options_hash]) Note: If only one hash is supplied, it is assumed to be an options hash, not
an environment hash (see Kernel.spawn).
# File lib/curl/spawn.rb, line 42 def self.spawn(*supplied_argv, &block) built_args = Curl::Spawn.build_args(&block) normalized_argv = Curl::Spawn.merge_args(supplied_argv, built_args) Kernel.spawn(*normalized_argv) end