Class: GameValidator::Validator::Result::Failure
- Inherits:
-
Object
- Object
- GameValidator::Validator::Result::Failure
- Extended by:
- Dry::Initializer
- Defined in:
- lib/game_validator/validator/result/failure.rb,
lib/game_validator/validator/result/failure/node.rb,
lib/game_validator/validator/result/failure/builder.rb
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#call(**args) ⇒ Object
10 11 12 13 14 |
# File 'lib/game_validator/validator/result/failure.rb', line 10 def call(**args) change_orders = Types.Interface(:push).call(args[:change_orders]) change_orders = change_orders.push(node) change_orders end |
#failure? ⇒ Boolean
16 17 18 |
# File 'lib/game_validator/validator/result/failure.rb', line 16 def failure? true end |
#success? ⇒ Boolean
20 21 22 |
# File 'lib/game_validator/validator/result/failure.rb', line 20 def success? false end |