Class: Trailblazer::Operation::Railway::Macaroni::Option

Inherits:
Trailblazer::Option
  • Object
show all
Defined in:
lib/trailblazer/operation/railway/macaroni.rb

Class Method Summary collapse

Class Method Details

.call!(proc, options) ⇒ Object

The Option#call! method prepares the arguments.



15
16
17
# File 'lib/trailblazer/operation/railway/macaroni.rb', line 15

def self.call!(proc, options, *)
  proc.(**options.to_hash.merge(options: options))
end