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

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](config) ⇒ Object


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

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

Instance Method Details

#callObject


15
16
17
# File 'lib/dry/initializer/builders/initializer.rb', line 15

def call
  lines.flatten.compact.join("\n")
end