Module: Flows::Plugin::Profiler::Injector Private

Defined in:
lib/flows/plugin/profiler/injector.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0

Class Method Summary collapse

Class Method Details

.make_module(method_name) ⇒ Object

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.

Since:

  • 0.4.0



7
8
9
10
11
12
# File 'lib/flows/plugin/profiler/injector.rb', line 7

def make_module(method_name)
  Module.new.tap do |mod|
    add_included(mod, method_name)
    add_extended(mod, method_name)
  end
end