Class: Wayfarer::Routing::FiletypesRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/wayfarer/routing/filetypes_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(types, opts = {}, &proc) ⇒ FiletypesRule

Returns a new instance of FiletypesRule.


8
9
10
11
# File 'lib/wayfarer/routing/filetypes_rule.rb', line 8

def initialize(types, opts = {}, &proc)
  @types = types
  super(opts, &proc)
end