Class: Debtective::Comments::Comment::Yard
- Defined in:
- lib/debtective/comments/comment/yard.rb
Overview
Hold YARD comment information
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#comment_start, #commit, #days, #initialize, #location, #to_h, #type
Constructor Details
This class inherits a constructor from Debtective::Comments::Comment::Base
Instance Method Details
#comment_end ⇒ Integer
12 13 14 |
# File 'lib/debtective/comments/comment/yard.rb', line 12 def comment_end @index end |
#statement_end ⇒ Integer
22 23 24 |
# File 'lib/debtective/comments/comment/yard.rb', line 22 def statement_end FindEndOfStatement.new(lines: lines, first_line_index: statement_start).call end |
#statement_start ⇒ Integer
17 18 19 |
# File 'lib/debtective/comments/comment/yard.rb', line 17 def statement_start last_following_comment_index.next end |