Sha256: a1bd695abd24b9fc270badd044f3187f76f2e279cd380f795651ff28f021f7f6
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 Bytes
Contents
require 'uri/query_params/mixin' require 'uri/generic' module URI class Generic include URI::QueryParams::Mixin private alias raw_path_query path_query # # Parses the query parameters from the query data, populating # query_params with the parsed parameters. # # @see QueryParams.parse # # @since 0.5.2 # def path_query if @query_params str = @path unless @query_params.empty? str += '?' + URI::QueryParams.dump(@query_params) end str else # do not rebuild the path-query, if the query_params have not # been parsed yet raw_path_query end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uri-query_params-0.7.0 | lib/uri/query_params/extensions/uri/generic.rb |