Module: ScriptLocator
- Included in:
- ScriptExecutor
- Defined in:
- lib/script_executor/script_locator.rb
Instance Method Summary collapse
Instance Method Details
#evaluate_script_body(content, binding) ⇒ Object
11 12 13 14 15 |
# File 'lib/script_executor/script_locator.rb', line 11 def evaluate_script_body content, binding template = ERB.new content template.result(binding).strip end |
#scripts(file) ⇒ Object
5 6 7 8 9 |
# File 'lib/script_executor/script_locator.rb', line 5 def scripts file data = extract_data file locate_scripts(data) end |