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

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](definition) ⇒ Object



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

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

Instance Method Details

#callObject



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

def call
  lines.compact
end