Module: Roda::RodaPlugins::MultiView::ClassMethods

Defined in:
lib/roda/plugins/multi_view.rb

Instance Method Summary collapse

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.



65
66
67
# File 'lib/roda/plugins/multi_view.rb', line 65

def multi_view_compile(array)
  /(#{Regexp.union(array)})/
end