Class: IRuby::PlainBackend
- Inherits:
-
Object
- Object
- IRuby::PlainBackend
- Defined in:
- lib/iruby/backend.rb
Instance Method Summary collapse
- #complete(line, text) ⇒ Object
- #eval(code) ⇒ Object
-
#initialize ⇒ PlainBackend
constructor
A new instance of PlainBackend.
Constructor Details
#initialize ⇒ PlainBackend
Returns a new instance of PlainBackend.
3 4 5 |
# File 'lib/iruby/backend.rb', line 3 def initialize Bond.start(debug: true) end |
Instance Method Details
#complete(line, text) ⇒ Object
11 12 13 |
# File 'lib/iruby/backend.rb', line 11 def complete(line, text) Bond.agent.call(line, line) end |
#eval(code) ⇒ Object
7 8 9 |
# File 'lib/iruby/backend.rb', line 7 def eval(code) TOPLEVEL_BINDING.eval(code) end |