Method: Factrey::Blueprint::Type#create_object

Defined in:
lib/factrey/blueprint/type.rb

#create_object(context) ⇒ Object

Create an object of this type.

Parameters:

  • context (Object)

    the context object that is passed to the factory

  • args (Array<Object>)

    positional arguments for the factory

  • kwargs (Hash{Symbol => Object})

    keyword arguments for the factory



47
48
49
# File 'lib/factrey/blueprint/type.rb', line 47

def create_object(context, *, **)
  @factory.call(self, context, *, **)
end