method
define_run_method
v2.0.3 -
Show latest stable
- Class:
ActionController::RequestProfiler::Sandbox
define_run_method(script_path)private
No documentation available.
# File actionpack/lib/action_controller/request_profiler.rb, line 42
def define_run_method(script_path)
script = File.read(script_path)
source = "def run\n#{script}\nreset!\nend"
instance_eval source, script_path, 1
end