Class: Infusible::Actuator

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

Overview

Associates the container with the constructor for actualization.

Instance Method Summary collapse

Constructor Details

#initialize(container, constructor: Infusible::Builder) ⇒ Actuator

Returns a new instance of Actuator.



6
7
8
9
# File 'lib/infusible/actuator.rb', line 6

def initialize container, constructor: Infusible::Builder
  @container = container
  @constructor = constructor
end

Instance Method Details

#[](*configuration) ⇒ Object



11
# File 'lib/infusible/actuator.rb', line 11

def [](*configuration) = constructor.new container, *configuration

#protected(*configuration) ⇒ Object



15
# File 'lib/infusible/actuator.rb', line 15

def protected(*configuration) = constructor.new container, *configuration, scope: __method__

#public(*configuration) ⇒ Object



13
# File 'lib/infusible/actuator.rb', line 13

def public(*configuration) = constructor.new container, *configuration, scope: __method__