Exception: StandardError

Inherits:
Exception
  • Object
show all
Defined in:
lib/jekyll_plugin_support/jekyll_plugin_support_class.rb

Instance Method Summary collapse

Instance Method Details

#shorten_backtrace(backtrace_element_count = 5) ⇒ Object



2
3
4
5
# File 'lib/jekyll_plugin_support/jekyll_plugin_support_class.rb', line 2

def shorten_backtrace(backtrace_element_count = 5)
  limit = [backtrace.size - 1, backtrace_element_count].min
  set_backtrace(backtrace[0..limit])
end