Class: Sinclair::MethodBuilder::CallMethodBuilder Private
- Defined in:
- lib/sinclair/method_builder/call_method_builder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Build a method based on a Sinclair::MethodDefinition::CallDefinition
Instance Method Summary collapse
-
#build ⇒ NilClass
private
Builds the method.
-
#code_block ⇒ Proc
private
Code block to be evaluated by the class.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Sinclair::MethodBuilder::Base
Instance Method Details
#build ⇒ NilClass
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Builds the method
The build uses module_eval
over a class
The code is ran either on the class itself or in a block that allow creation of class methods
18 19 20 |
# File 'lib/sinclair/method_builder/call_method_builder.rb', line 18 def build evaluating_class.module_eval(&code_block) end |
#code_block ⇒ Proc
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Code block to be evaluated by the class
|
# File 'lib/sinclair/method_builder/call_method_builder.rb', line 23
|