Class: DontRepeatYourself::TextMateFormatter
- Inherits:
-
HTMLFormatter
- Object
- DefaultFormatter
- HTMLFormatter
- DontRepeatYourself::TextMateFormatter
- Defined in:
- lib/dont_repeat_yourself/formatter.rb
Instance Attribute Summary
Attributes inherited from DefaultFormatter
Instance Method Summary collapse
Methods inherited from HTMLFormatter
#format_duplicate_lines_snippet, #get_asset, #report, #report_footer, #report_header
Methods inherited from DefaultFormatter
#format_duplicate_lines_snippet, #initialize, #report, #report_body
Constructor Details
This class inherits a constructor from DontRepeatYourself::DefaultFormatter
Instance Method Details
#format_sentence_between_lines_x_and_y_in_filepath(block) ⇒ Object
130 131 132 133 134 135 |
# File 'lib/dont_repeat_yourself/formatter.rb', line 130 def format_sentence_between_lines_x_and_y_in_filepath(block) starts = block.line_number_of_first_duplicate_line file_path = block.file_path sentence = block.sentence_between_lines_x_and_y_in_filepath "<a href='txmt://open?url=file://#{file_path}&line=#{starts}'>#{sentence}</a>" end |