Sha256: ffcc244db7dedf99d7f407220997ac061285d948a6de911aef933c24fbc3d31e
Contents?: true
Size: 484 Bytes
Versions: 5
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Kit class FilterList # Represents an regular expression list which may be used as an analyzer setting. def initialize list = [] @list = Array list end def to_hint = to_regexp.map(&:inspect).join(", ") def to_regexp = list.map { |item| Regexp.new item } def empty? = list.empty? private attr_reader :list end end end end
Version data entries
5 entries across 5 versions & 1 rubygems