class Padrino::Routing::BlockArityError
Raised when block arity was nonzero and was not same with captured parameter length.
Public Class Methods
new(path, block_arity, required_arity)
click to toggle source
Calls superclass method
# File lib/padrino-core/application/routing.rb, line 27 def initialize(path, block_arity, required_arity) super "route block arity does not match path '#{path}' (#{block_arity} for #{required_arity})" end