module Roda::RodaPlugins::StripPathPrefix::ClassMethods

  1. lib/roda/plugins/strip_path_prefix.rb

Methods

Public Instance

  1. expand_path

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