class RuboCop::Schema::AsciiDoc::Index

Attributes

department_names[R]

@return [Array<string>]

Protected Instance Methods

scan() click to toggle source
# File lib/rubocop/schema/ascii_doc/index.rb, line 12
def scan
  @department_names = root
    .query(context: :section) { |s| s.title.start_with? 'Department ' }
    .map { |section| link_text section.title }
end