module Roda::RodaPlugins::StripPathPrefix::ClassMethods
Public Instance Methods
Source
# File lib/roda/plugins/strip_path_prefix.rb, line 25 def expand_path(path, root=opts[:root]) super.sub(opts[:strip_path_prefix], '') end
Strip the path prefix from the gien path if it starts with the prefix.
Calls superclass method