Class: Flame::Validators::RouteArgumentsValidator
- Inherits:
-
Object
- Object
- Flame::Validators::RouteArgumentsValidator
- Defined in:
- lib/flame/validators.rb
Overview
Compare arguments from path and from controller’s action
Instance Method Summary collapse
-
#initialize(ctrl, path, action) ⇒ RouteArgumentsValidator
constructor
A new instance of RouteArgumentsValidator.
- #valid? ⇒ Boolean
Constructor Details
#initialize(ctrl, path, action) ⇒ RouteArgumentsValidator
Returns a new instance of RouteArgumentsValidator.
10 11 12 13 14 |
# File 'lib/flame/validators.rb', line 10 def initialize(ctrl, path, action) @ctrl = ctrl @path = Flame::Path.new(path) @action = action end |
Instance Method Details
#valid? ⇒ Boolean
16 17 18 |
# File 'lib/flame/validators.rb', line 16 def valid? extra_valid? && order_valid? end |