Module: Dry::Initializer::Dispatchers::PrepareIvar

Defined in:
lib/dry/initializer/dispatchers/prepare_ivar.rb

Class Method Summary collapse

Class Method Details

.call(target:, **options) ⇒ Object


11
12
13
14
15
# File 'lib/dry/initializer/dispatchers/prepare_ivar.rb', line 11

def call(target:, **options)
  ivar = "@#{target}".delete("?").to_sym

  {target: target, ivar: ivar, **options}
end