Class: Uses::Initializer::BaseInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/uses/initializer/base_initializer.rb

Direct Known Subclasses

FromInitializers, NewNoArgs, ProcBased

Instance Method Summary collapse

Constructor Details

#initialize(uses_method_args) ⇒ BaseInitializer

Returns a new instance of BaseInitializer.



4
5
6
# File 'lib/uses/initializer/base_initializer.rb', line 4

def initialize(uses_method_args)
  @proc = self.create_proc(uses_method_args)
end

Instance Method Details

#callObject



8
9
10
# File 'lib/uses/initializer/base_initializer.rb', line 8

def call
  @proc.()
end