class IRB::WorkSpace
Constants
- FILTER_BACKTRACE_REGEX
Public Instance Methods
evaluate(context, statements, file = __FILE__, line = __LINE__)
click to toggle source
# File lib/tailog/ext/irb.rb, line 36 def evaluate(context, statements, file = __FILE__, line = __LINE__) @after_ruby_debug_erb = false eval(statements, @binding, file, line) end
filter_backtrace(backtrace)
click to toggle source
# File lib/tailog/ext/irb.rb, line 42 def filter_backtrace backtrace return if @after_ruby_debug_erb if backtrace =~ FILTER_BACKTRACE_REGEX @after_ruby_debug_erb = true return else backtrace.sub(/:\s*in `irb_binding'/, '') end end