class Git::Lint::Kit::FilterList
Public Class Methods
new(list = [])
click to toggle source
Represents an regular expression list which may be used as an analyzer setting.
# File lib/git/lint/kit/filter_list.rb, line 8 def initialize list = [] @list = Array list end
Public Instance Methods
empty?(= list.empty?)
click to toggle source
# File lib/git/lint/kit/filter_list.rb, line 16 def empty? = list.empty? private attr_reader :list end
to_hint(= to_regexp.map(&:inspect).join(", "))
click to toggle source
# File lib/git/lint/kit/filter_list.rb, line 12 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
to_regexp(= list.map { |item| Regexp.new item })
click to toggle source
# File lib/git/lint/kit/filter_list.rb, line 14 def to_regexp = list.map { |item| Regexp.new item } def empty? = list.empty? private attr_reader :list end end