Class: Trailblazer::Option::KW

Inherits:
Trailblazer::Option show all
Defined in:
lib/trailblazer/option.rb

Overview

TODO: It would be cool if call! was typed and had ‘options SymbolizedHash` or something.

Class Method Summary collapse

Methods inherited from Trailblazer::Option

KW, build, evaluate_callable, evaluate_method

Class Method Details

.call!(proc, options) ⇒ Object

A different call implementation that calls ‘proc` with a “step interface”.

your_code.(options, **options)


73
74
75
# File 'lib/trailblazer/option.rb', line 73

def self.call!(proc, options, *)
  proc.(options, **options.to_hash) # Step interface: (options, **)
end