Class: Codeowners::Checker::Group::GroupBeginComment
- Defined in:
- lib/codeowners/checker/group/group_begin_comment.rb
Overview
Define line type GroupBeginComment which is used for defining the beggining of a group.
Instance Attribute Summary
Attributes inherited from Line
Class Method Summary collapse
Methods inherited from Comment
Methods inherited from Line
#<=>, #==, build, #initialize, #pattern?, #remove!, subclasses, #to_content, #to_file, #to_s, #to_tree
Constructor Details
This class inherits a constructor from Codeowners::Checker::Group::Line
Class Method Details
.match?(line) ⇒ Boolean
11 12 13 |
# File 'lib/codeowners/checker/group/group_begin_comment.rb', line 11 def self.match?(line) line.lstrip =~ /^#+ BEGIN/ end |