Class: Dry::Initializer::Builders::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/initializer/builders/signature.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](config) ⇒ Object


8
9
10
# File 'lib/dry/initializer/builders/signature.rb', line 8

def self.[](config)
  new(config).call
end

Instance Method Details

#callObject


12
13
14
# File 'lib/dry/initializer/builders/signature.rb', line 12

def call
  [*required_params, *optional_params, "*", options].compact.join(", ")
end