Module: Ripl::Johnson

Defined in:
lib/ripl/johnson/version.rb,
lib/ripl/johnson.rb

Defined Under Namespace

Modules: Completion, MultiLine, Runner

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runtimeObject



16
17
18
# File 'lib/ripl/johnson.rb', line 16

def self.runtime
  @runtime ||= ::Johnson::Runtime.new
end

Instance Method Details

#before_loopObject



7
8
9
10
# File 'lib/ripl/johnson.rb', line 7

def before_loop
  super
  Ripl::Johnson.runtime.evaluate(Johnson::CLI::JS)
end

#loop_eval(expression) ⇒ Object



12
13
14
# File 'lib/ripl/johnson.rb', line 12

def loop_eval(expression)
  Ripl::Johnson.runtime.evaluate(expression)
end