Exception: Padrino::Routing::BlockArityError
- Defined in:
- padrino-core/lib/padrino-core/application/routing.rb
Overview
Raised when block arity was nonzero and was not same with captured parameter length.
Instance Method Summary collapse
-
#initialize(path, block_arity, required_arity) ⇒ BlockArityError
constructor
A new instance of BlockArityError.
Constructor Details
#initialize(path, block_arity, required_arity) ⇒ BlockArityError
Returns a new instance of BlockArityError.
27 28 29 |
# File 'padrino-core/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 |