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