Module: Roda::RodaPlugins::MultiView::ClassMethods
- Defined in:
- lib/roda/plugins/multi_view.rb
Instance Method Summary collapse
-
#multi_view_compile(array) ⇒ Object
Given the array of view template names, return a regexp that will match on any of the names and capture the matched name.
Instance Method Details
#multi_view_compile(array) ⇒ Object
Given the array of view template names, return a regexp that will match on any of the names and capture the matched name.
62 63 64 |
# File 'lib/roda/plugins/multi_view.rb', line 62 def multi_view_compile(array) /(#{Regexp.union(array)})/ end |