Module: Roda::RodaPlugins::Component::RequestClassMethods
- Defined in:
- lib/roda/plugins/component.rb
Instance Method Summary collapse
Instance Method Details
#component_assets_route_regex ⇒ Object
227 228 229 |
# File 'lib/roda/plugins/component.rb', line 227 def component_assets_route_regex component_opts[:assets_route] end |
#component_opts ⇒ Object
223 224 225 |
# File 'lib/roda/plugins/component.rb', line 223 def component_opts roda_class.component_opts end |
#component_route_regex ⇒ Object
231 232 233 234 235 |
# File 'lib/roda/plugins/component.rb', line 231 def component_route_regex Regexp.new( component_opts[:route] + "/([a-zA-Z0-9_-]*)/([a-zA-Z0-9_-]*)/([a-zA-Z0-9_-]*)" ) end |