| Class | URI::DRuby |
| In: |
lib/uri/druby.rb
|
| Parent: | GenericEx |
| SCHEME | = | 'druby' |
| DEFAULT_HOST | = | 'localhost' |
| DEFAULT_PORT | = | 0 |
| DEFAULT_QUERY | = | '' |
| COMPONENT | = | [ :scheme, :host, :port ].freeze |
# File lib/uri/druby.rb, line 18 def self.build(args) if args.is_a?(Array) args << DEFAULT_HOST if args.size < 1 args << DEFAULT_PORT if args.size < 2 elsif args.is_a?(Hash) args[:host] = DEFAULT_HOST if args[:host].nil? args[:port] = DEFAULT_PORT if args[:port].nil? end return super(Util::make_components_hash(self, args)) end