Class: Debtective::Comments::Comment::Shebang

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

Overview

Hold shebang 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_start, #commit, #days, #initialize, #location, #to_h, #type

Constructor Details

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

Instance Method Details

#comment_endInteger

Returns:

  • (Integer)


11
12
13
# File 'lib/debtective/comments/comment/shebang.rb', line 11

def comment_end
  @index
end

#statement_endInteger

Returns:

  • (Integer)


21
22
23
# File 'lib/debtective/comments/comment/shebang.rb', line 21

def statement_end
  nil
end

#statement_startInteger

Returns:

  • (Integer)


16
17
18
# File 'lib/debtective/comments/comment/shebang.rb', line 16

def statement_start
  nil
end