Class: DatabasedotcomConsole::ScriptRunner
- Inherits:
-
Object
- Object
- DatabasedotcomConsole::ScriptRunner
- Defined in:
- lib/databasedotcom_console.rb
Instance Method Summary collapse
-
#initialize(path, connection) ⇒ ScriptRunner
constructor
A new instance of ScriptRunner.
Constructor Details
#initialize(path, connection) ⇒ ScriptRunner
Returns a new instance of ScriptRunner.
31 32 33 34 35 |
# File 'lib/databasedotcom_console.rb', line 31 def initialize(path, connection) @dbdc = connection vars = binding eval(File.read(path), vars) if path.class == String end |