lib/hyperclient/curie.rb in hyperclient-0.9.0 vs lib/hyperclient/curie.rb in hyperclient-0.9.1

- old
+ new

@@ -39,9 +39,10 @@ # rel - The String rel to expand. # # Returns a new expanded url. def expand(rel) return rel unless rel && templated? - href.gsub('{rel}', rel) if href + + href&.gsub('{rel}', rel) end end end