Class: Sycsvpro::Profiler
- Inherits:
-
Object
- Object
- Sycsvpro::Profiler
- Includes:
- Dsl
- Defined in:
- lib/sycsvpro/profiler.rb
Overview
A profiler takes a Ruby script and executes the provided method in the script
Constant Summary
Constants included from Dsl
Instance Attribute Summary collapse
-
#pro_file ⇒ Object
readonly
Ruby script file.
Instance Method Summary collapse
-
#execute(method) ⇒ Object
Executes the provided method in the Ruby script.
-
#initialize(pro_file) ⇒ Profiler
constructor
Creates a new profiler.
Methods included from Dsl
#clean_up, #params, #rows, #split_by_comma_regex, #str2utf8, #unstring, #write_to
Constructor Details
#initialize(pro_file) ⇒ Profiler
Creates a new profiler
15 16 17 |
# File 'lib/sycsvpro/profiler.rb', line 15 def initialize(pro_file) require pro_file end |
Instance Attribute Details
#pro_file ⇒ Object (readonly)
Ruby script file
12 13 14 |
# File 'lib/sycsvpro/profiler.rb', line 12 def pro_file @pro_file end |
Instance Method Details
#execute(method) ⇒ Object
Executes the provided method in the Ruby script
20 21 22 |
# File 'lib/sycsvpro/profiler.rb', line 20 def execute(method) send(method) end |