Method: Hyperclient::Curie#expand
- Defined in:
- lib/hyperclient/curie.rb
#expand(rel) ⇒ Object
Expands the Curie when is templated with the given variables.
42 43 44 45 46 |
# File 'lib/hyperclient/curie.rb', line 42 def (rel) return rel unless rel && templated? href&.gsub('{rel}', rel) end |