Class: ValueSemantics::Recipe

Inherits:
Object
  • Object
show all
Defined in:
lib/value_semantics/recipe.rb

Overview

Contains all the configuration necessary to bake a ValueSemantics module

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes:) ⇒ Recipe

Returns a new instance of Recipe.



12
13
14
15
# File 'lib/value_semantics/recipe.rb', line 12

def initialize(attributes:)
  @attributes = attributes
  freeze
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



10
11
12
# File 'lib/value_semantics/recipe.rb', line 10

def attributes
  @attributes
end