123456789_123456789_123456789_123456789_123456789_

Module: RSpec::Core::Formatters::HtmlSnippetExtractor::CoderayConverter Private

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: rspec-core/lib/rspec/core/formatters/html_snippet_extractor.rb

Class Method Summary

Class Method Details

.convert(code)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/formatters/html_snippet_extractor.rb', line 18

def self.convert(code)
  CodeRay.scan(code, :ruby).html(:line_numbers => false)
end