| Class | URI::Generic |
| In: |
lib/uri/generic_ex.rb
|
| Parent: | Object |
# File lib/uri/generic_ex.rb, line 70 def add_query ( arg ) if query.nil? self.query = arg else self.query += ',' + arg end end
# File lib/uri/generic_ex.rb, line 58 def checkout raise CheckoutError, "Can't checkout a #{self.class}" end
# File lib/uri/generic_ex.rb, line 62 def commit ( *args ) raise CommitError, "Can't commit a #{self.class}" end
# File lib/uri/generic_ex.rb, line 79 def mk_custom_opts opts = [] return opts if @query.nil? @query.split(/,/).map do |x| k, v = x.split(/=/) k = URI.decode(k) if k.size == 1 opts << "-#{k}" else opts << "--#{k}" end opts << URI.decode(v) unless v.nil? end opts end