Top Level Namespace
Defined Under Namespace
Modules: ActiveSP Classes: URL
Instance Method Summary collapse
Instance Method Details
#URL(*args) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/activesp/url.rb', line 27 def URL(*args) case args.length when 1 url = args[0] if URL === url url else URL.parse(url) end when 2..6 URL.new(*args) else raise ArgumentError, "wrong number of arguments (#{args.length} for 1..6)" end end |