Module: Roda::RodaPlugins::Component::RequestClassMethods
- Defined in:
- lib/roda/plugins/component.rb
Instance Method Summary collapse
Instance Method Details
#component_assets_route_regex ⇒ Object
172 173 174 |
# File 'lib/roda/plugins/component.rb', line 172 def component_assets_route_regex component_opts[:assets_route] end |
#component_opts ⇒ Object
168 169 170 |
# File 'lib/roda/plugins/component.rb', line 168 def component_opts roda_class.component_opts end |
#component_route_regex ⇒ Object
176 177 178 179 180 |
# File 'lib/roda/plugins/component.rb', line 176 def component_route_regex Regexp.new( component_opts[:route] + "/([a-zA-Z0-9_-]*)/([a-zA-Z0-9_-]*)/([a-zA-Z0-9_-]*)" ) end |