method
snippet

snippet(error)
public
Hide source
# File lib/spec/runner/formatter/snippet_extractor.rb, line 9 def snippet(error) raw_code, line = snippet_for(error.backtrace[0]) highlighted = @@converter.convert(raw_code, false) highlighted << "\n<span class=\"comment\"># gem install syntax to get syntax highlighting</span>" if @@converter.is_a?(NullConverter) post_process(highlighted, line) end