Sha256: 89e6b3e5bd86d563a0fe8d360af0e9ca8e125bfb9486b0f3b0c00fa7b7032f5b

Contents?: true

Size: 256 Bytes

Versions: 5

Compression:

Stored size: 256 Bytes

Contents

require 'addressable/uri'

class ::Url < Addressable::URI ; end

module Gorillib::Factory
  class UrlFactory < Gorillib::Factory::ConvertingFactory
    self.product = ::Url
    def convert(obj)      product.parse(obj) ; end
    register_factory!
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gorillib-0.6.0 lib/gorillib/type/url.rb
gorillib-0.5.2 lib/gorillib/type/url.rb
gorillib-0.5.0 lib/gorillib/type/url.rb
gorillib-0.4.2 lib/gorillib/type/url.rb
gorillib-0.4.2pre lib/gorillib/type/url.rb