Class: Uses::Initializer::BaseInitializer
- Inherits:
-
Object
- Object
- Uses::Initializer::BaseInitializer
- Defined in:
- lib/uses/initializer/base_initializer.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(uses_method_args) ⇒ BaseInitializer
constructor
A new instance of BaseInitializer.
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
#call ⇒ Object
8 9 10 |
# File 'lib/uses/initializer/base_initializer.rb', line 8 def call @proc.() end |