Class: Wayfarer::Routing::URIRule
- Defined in:
- lib/wayfarer/routing/uri_rule.rb
Instance Attribute Summary
Attributes inherited from Rule
Instance Method Summary collapse
-
#initialize(uri_str, opts = {}, &proc) ⇒ URIRule
constructor
A new instance of URIRule.
Methods inherited from Rule
#build_child_rule_chain_from_options, #filetypes, #host, #if, #invoke, #matches?, #matching_rule_chain, #params, #path, #protocol, #query, #uri
Constructor Details
#initialize(uri_str, opts = {}, &proc) ⇒ URIRule
Returns a new instance of URIRule.
9 10 11 12 |
# File 'lib/wayfarer/routing/uri_rule.rb', line 9 def initialize(uri_str, opts = {}, &proc) @uri = URI(uri_str) super(opts, &proc) end |