class Wayfarer::Routing::CustomRule
@private
Public Class Methods
new(delegate_or_block = proc, opts = {}, &proc)
click to toggle source
Calls superclass method
# 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
Private Instance Methods
match!(uri)
click to toggle source
# File lib/wayfarer/routing/custom_rule.rb, line 16 def match!(uri) !!@delegate_or_block.call(uri) end