module Marta::Injector
This module can add Marta's stuff to the page.
Marta
is inserting tons of stuff to the pages! Those insertions are the only way for her to perform dialog with user
Private Instance Methods
inject(what, title = 'Something important', data = Hash.new, custom_vars = Array.new, custom_scripts = Array.new)
click to toggle source
That's how Marta
is injecting and retrieving result
# File lib/marta/injector.rb, line 141 def inject(what, title = 'Something important', data = Hash.new, custom_vars = Array.new, custom_scripts = Array.new) syringe = Syringe.new(engine, what, title, data, gem_libdir, custom_vars, custom_scripts) syringe.actual_injection syringe.get_result end