class RuboCop::Cop::Style::MagicCommentFormat::CommentRange
def directives
A magic comment can contain one directive (normal style) or
def directives @directives ||= begin matches = [] text.scan(DIRECTIVE_REGEXP) do offset = Regexp.last_match.offset(0) matches << loc.expression.adjust(begin_pos: offset.first) .with(end_pos: loc.expression.begin_pos + offset.last) end matches end end