static public Method

SFTP.new( *args )

There's no documentation for this item.

Source Code

# File uri/sftp.rb, line 25
def initialize( *args )
  super( *args )

  @options = Hash.new
  ( query || "" ).split( /&/ ).each do |pair|
    name, value = pair.split( /=/ )
    opt_name = name.intern
    values = value.split( /,/ ).map { |v| v.to_i.to_s == v ? v.to_i : v }
    values = values.first if values.length == 1
    options[ opt_name ] = values
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.