Class: IRuby::PlainBackend
- Inherits:
-
Object
- Object
- IRuby::PlainBackend
- Includes:
- History
- Defined in:
- lib/iruby/backend.rb
Instance Method Summary collapse
- #complete(code) ⇒ Object
- #eval(code, store_history) ⇒ Object
-
#initialize ⇒ PlainBackend
constructor
A new instance of PlainBackend.
Constructor Details
#initialize ⇒ PlainBackend
Returns a new instance of PlainBackend.
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 |