Module: Escher::RackMiddleware::ExcludePath
- Included in:
- Escher::RackMiddleware
- Defined in:
- lib/escher/rack_middleware/exclude_path.rb
Class Method Summary collapse
Instance Method Summary collapse
- #add_exclude_paths(*paths) ⇒ Object (also: #add_exclude_path)
- #excluded_paths ⇒ Object
Class Method Details
.extended(klass) ⇒ Object
4 5 6 |
# File 'lib/escher/rack_middleware/exclude_path.rb', line 4 def self.extended(klass) klass.__send__(:include,self::Helper) end |
Instance Method Details
#add_exclude_paths(*paths) ⇒ Object Also known as: add_exclude_path
8 9 10 |
# File 'lib/escher/rack_middleware/exclude_path.rb', line 8 def add_exclude_paths(*paths) excluded_paths.push(*paths) end |
#excluded_paths ⇒ Object
14 15 16 |
# File 'lib/escher/rack_middleware/exclude_path.rb', line 14 def excluded_paths @excluded_paths ||= [] end |