Class: Debtective::Comments::Comment::Todo

Inherits:
Base
  • Object
show all
Defined in:
lib/debtective/comments/comment/todo.rb

Overview

Hold TODO comment information

Constant Summary

Constants inherited from Base

Base::REGULAR_COMMENT

Instance Attribute Summary

Attributes inherited from Base

#pathname

Instance Method Summary collapse

Methods inherited from Base

#comment_end, #comment_start, #commit, #days, #initialize, #location, #statement_start, #to_h, #type

Constructor Details

This class inherits a constructor from Debtective::Comments::Comment::Base

Instance Method Details

#statement_endInteger

Returns:

  • (Integer)


12
13
14
15
16
# File 'lib/debtective/comments/comment/todo.rb', line 12

def statement_end
  return super if inline?

  FindEndOfStatement.new(lines: lines, first_line_index: statement_start).call
end