Method: Jdoc::Link#path
- Defined in:
- lib/jdoc/link.rb
#path ⇒ String
Note:
URI Template is replaced with placeholder
Returns Request path name, defined at href property.
59 60 61 62 63 |
# File 'lib/jdoc/link.rb', line 59 def path @path ||= @raw_link.href.gsub(/{(.+?)}/) do ":" + CGI.unescape($1).gsub(/[()\s]/, "").split("/").last end end |