Class: Wayfarer::Routing::CustomRule
- Defined in:
- lib/wayfarer/routing/custom_rule.rb
Instance Attribute Summary
Attributes inherited from Rule
Instance Method Summary collapse
-
#initialize(delegate_or_block = proc, opts = {}, &proc) ⇒ CustomRule
constructor
A new instance of CustomRule.
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(delegate_or_block = proc, opts = {}, &proc) ⇒ CustomRule
Returns a new instance of CustomRule.
9 10 11 12 |
# File 'lib/wayfarer/routing/custom_rule.rb', line 9 def initialize(delegate_or_block = proc, opts = {}, &proc) @delegate_or_block = delegate_or_block super(opts, &proc) end |