Class: Utils::IRB::Service::Proxy
Instance Method Summary collapse
- #eval(code) ⇒ Object
-
#initialize(irb) ⇒ Proxy
constructor
A new instance of Proxy.
- #load(filename) ⇒ Object
Constructor Details
#initialize(irb) ⇒ Proxy
Returns a new instance of Proxy.
24 25 26 |
# File 'lib/utils/irb/service.rb', line 24 def initialize(irb) @irb = irb end |
Instance Method Details
#eval(code) ⇒ Object
28 29 30 |
# File 'lib/utils/irb/service.rb', line 28 def eval(code) @irb.conf.workspace.evaluate nil, code end |