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=app_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
27 def expand_path(path, root=app_root)
28   super.sub(strip_path_prefix_regexp, '')
29 end