Class: Wayfarer::Routing::CustomRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/wayfarer/routing/custom_rule.rb

Instance Attribute Summary

Attributes inherited from Rule

#child_rules, #target_action

Instance Method Summary collapse

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