Module: SimpleJSONSchema::URIExtender
- Defined in:
- lib/simple_json_schema/uri_extender.rb
Class Method Summary collapse
Class Method Details
.join_uri(base, complement) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/simple_json_schema/uri_extender.rb', line 6 def join_uri(base, complement) complement = URI.parse(complement) if complement if base && complement return complement if base.relative? && complement.relative? URI.join(base, complement) else complement || base end end |