Class: ObjectForge::Forge::Parameters

Inherits:
Struct
  • Object
show all
Defined in:
lib/object_forge/forge.rb

Overview

Interface for forge parameters. It is not used internally, but can be useful for defining forges through means other than ObjectForge::ForgeDSL.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#attributesHash{Symbol => Any} (readonly)

Non-trait values of the attributes.



22
# File 'lib/object_forge/forge.rb', line 22

Parameters = Struct.new(:attributes, :traits, keyword_init: true)

#traitsHash{Symbol => Hash{Symbol => Any}} (readonly)

Attributes belonging to traits.



22
# File 'lib/object_forge/forge.rb', line 22

Parameters = Struct.new(:attributes, :traits, keyword_init: true)