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 forge_target.new(attributes).
Instance Method Summary collapse
-
#call(forge_target:, attributes:, **_) ⇒ Any
Instantiate forge target with a hash of attributes.
Instance Method Details
#call(forge_target:, attributes:, **_) ⇒ Any
Instantiate forge target with a hash of attributes.
15 16 17 |
# File 'lib/object_forge/molds/single_argument_mold.rb', line 15 def call(forge_target:, attributes:, **_) forge_target.new(attributes) end |