Class: GameValidator::Validator::ValidateToAction

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/game_validator/validator/validate_to_action.rb

Instance Method Summary collapse

Instance Method Details

#call(action_hash) ⇒ Object



12
13
14
15
16
# File 'lib/game_validator/validator/validate_to_action.rb', line 12

def call(action_hash)
  result = validate.(action_hash)
  result = wrap.(result) if result.success?
  result
end