Class: Flame::Validators::RouteArgumentsValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/flame/validators.rb

Overview

Compare arguments from path and from controller’s action

Instance Method Summary collapse

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

Returns:

  • (Boolean)


16
17
18
# File 'lib/flame/validators.rb', line 16

def valid?
	extra_valid? && order_valid?
end