Sha256: 53fe721b556c38eb193f11d9c3e2d99b5d5b9d2af0d0ca3a88ff48899dbb74de
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
class RubyWorkspace def get_binding @binding ||= binding() end def evaluate(text) puts "RUBY WORKSPACE: #{text}" result = CodeEvaluation.wait_for_eval_thread do eval(text, get_binding) end store_object(result) result end def store_object(obj) MaglevDatabaseExplorer.store_debug_object(obj) end def initialize store_object(self) end class << self def default_instance @default_instance ||= self.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems