Sha256: 79fd93da96d0185229120dcbd89b721e549bd8994d2778da3082f8361dab8e94

Contents?: true

Size: 257 Bytes

Versions: 1

Compression:

Stored size: 257 Bytes

Contents

module Swagger
  class URITemplate < String
    attr_reader :uri_template
    def initialize(string)
      # FIXME: Is it possible to initialize with heuristic parse once?
      @uri_template = Addressable::Template.new 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_template.rb