Class: ValueSemantics::Recipe

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

Overview

Contains all the configuration necessary to bake a ValueSemantics module

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



247
248
249
# File 'lib/value_semantics.rb', line 247

def attributes
  @attributes
end