Sha256: a3477c29ba43c5b719d3e8d44a2e179307621a44e1910d98fe47ff362007cbd5

Contents?: true

Size: 238 Bytes

Versions: 1

Compression:

Stored size: 238 Bytes

Contents

module Swagger
  class URI < String
    attr_reader :uri
    def initialize(string)
      # FIXME: Is it possible to initialize with heuristic parse once?
      @uri = Addressable::URI.heuristic_parse string
      super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
swagger-core-0.2.0 lib/swagger/uri.rb