Sha256: 90de1748107bbe22860a18d3a2f8aeb3752f9e24b1c92086172f83c1299c26ba
Contents?: true
Size: 992 Bytes
Versions: 2
Compression:
Stored size: 992 Bytes
Contents
class Exception # Returns an array of the exception backtrace locations bindings. # # The list won't map to the traces in #backtrace 1 to 1, because we can't # build bindings for every trace (C functions, for example). # # Every integration should set the instance variable. def bindings defined?(@bindings) ? @bindings : [] end end case RUBY_ENGINE when 'rbx' require 'web_console/integration/rubinius' when 'ruby' require 'web_console/integration/cruby' else # Prevent a `method redefined; discarding old caller_bindings` warning. module WebConsole # Returns the Ruby bindings of Kernel#callers locations. # # The list of bindings here doesn't map 1 to 1 with Kernel#callers, as we # can't build Ruby bindings for C functions or the equivalent native # implementations in JRuby and Rubinius. # # This method needs to be overridden by every integration. def self.caller_bindings raise NotImplementedError end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
web-console-3.4.0 | lib/web_console/integration.rb |
web-console-3.3.1 | lib/web_console/integration.rb |