Class: ValueSemantics::Recipe
- Inherits:
-
Object
- Object
- ValueSemantics::Recipe
- Defined in:
- lib/value_semantics.rb
Overview
Contains all the configuration necessary to bake a ValueSemantics module
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(attributes:) ⇒ Recipe
constructor
A new instance of Recipe.
Constructor Details
#initialize(attributes:) ⇒ Recipe
Returns a new instance of Recipe.
249 250 251 252 |
# File 'lib/value_semantics.rb', line 249 def initialize(attributes:) @attributes = attributes freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
247 248 249 |
# File 'lib/value_semantics.rb', line 247 def attributes @attributes end |