Public Instance methods
expand_path(path, root=opts[:root])
Strip the path prefix from the gien path if it starts with the prefix.
[show source]
# File lib/roda/plugins/strip_path_prefix.rb 25 def expand_path(path, root=opts[:root]) 26 super.sub(opts[:strip_path_prefix], '') 27 end