Class: GameValidator::Validator::Result::Failure

Inherits:
Object
  • Object
show all
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

Classes: Builder, Node

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

Returns:

  • (Boolean)


16
17
18
# File 'lib/game_validator/validator/result/failure.rb', line 16

def failure?
  true
end

#success?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/game_validator/validator/result/failure.rb', line 20

def success?
  false
end