swap

swap(*args, &block) Instance Public methods

to_h

to_h() Instance Public methods Converts the OpenStruct to a hash with keys representing each attribute (as symbols) and their corresponding values Example: require 'ostruct' data = OpenStruct.new("country" => "Australia", :population => 20_000_000) data.to_h # => {:country => "Australia", :population => 20000000 }

style 2

style(*args) Class Public methods

optname

sockopt.optname => integer Instance Public methods returns the socket option name as an integer. p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).optname #=> 2

complete_authentication

complete_authentication(token) Instance Public methods Takes a token and gets the next token in the Negotiate authentication chain. Token can be Base64 encoded or not. The token can include the âNegotiateâ header and it will be stripped. Does not indicate if SEC_I_CONTINUE or SEC_E_OK was returned. Token returned is Base64 encoded w/ all new lines removed.

to_hash

to_hash() Instance Public methods Returns a Hash consisting of header names and values. e.g. {âcache-controlâ => âprivateâ, "content-type" => "text/html", "date" => "Wed, 22 Jun 2005 22:11:50 GMT"}

cloneNode

cloneNode(arg0) Instance Public methods IXMLDOMNode cloneNode BOOL arg0 --- deep [IN]

alias_info

alias_info(slave, cmd_name) Class Public methods

load_response 2

load_response( stringOrReadable ) Instance Public methods Returns paramOrFault

original_dir

original_dir() Class Public methods Return the original directory where the Rake application was started.