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

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](definition) ⇒ Object


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

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

Instance Method Details

#callObject


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

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