Class: ObjectForge::Molds::SingleArgumentMold
- Inherits:
-
Object
- Object
- ObjectForge::Molds::SingleArgumentMold
- Defined in:
- lib/object_forge/molds/single_argument_mold.rb
Overview
Basic mold which calls forged.new(attributes).
Instance Method Summary collapse
-
#call(forged:, attributes:, **_) ⇒ Any
Instantiate
forgedwith a hash of attributes.
Instance Method Details
#call(forged:, attributes:, **_) ⇒ Any
Instantiate forged with a hash of attributes.
15 16 17 |
# File 'lib/object_forge/molds/single_argument_mold.rb', line 15 def call(forged:, attributes:, **_) forged.new(attributes) end |