Class: Sinclair::MethodBuilder::StringMethodBuilder Private

Inherits:
Base
  • Object
show all
Defined in:
lib/sinclair/method_builder/string_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.

Class responsible to build methods from string definitions

Instance Method Summary collapse

Methods inherited from Base

build, #initialize

Constructor Details

This class inherits a constructor from Sinclair::MethodBuilder::Base

Instance Method Details

#buildSymbol

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

Returns:

  • (Symbol)

    name of the method built



16
17
18
# File 'lib/sinclair/method_builder/string_method_builder.rb', line 16

def build
  evaluating_class.module_eval(code_definition, __FILE__, __LINE__ + 1)
end