Class: Codeowners::Checker::Group::GroupBeginComment

Inherits:
Comment
  • Object
show all
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

#parent

Class Method Summary collapse

Methods inherited from Comment

#level

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/codeowners/checker/group/group_begin_comment.rb', line 11

def self.match?(line)
  line.lstrip =~ /^#+ BEGIN/
end