Class: IRuby::PlainBackend

Inherits:
Object
  • Object
show all
Defined in:
lib/iruby/backend.rb

Instance Method Summary collapse

Constructor Details

#initializePlainBackend


38
39
40
41
# File 'lib/iruby/backend.rb', line 38

def initialize
  require 'bond'
  Bond.start(debug: true)
end

Instance Method Details

#complete(code) ⇒ Object


47
48
49
# File 'lib/iruby/backend.rb', line 47

def complete(code)
  Bond.agent.call(code, code)
end

#eval(code, store_history) ⇒ Object


43
44
45
# File 'lib/iruby/backend.rb', line 43

def eval(code, store_history)
  TOPLEVEL_BINDING.eval(code)
end