Method: PathList::Matchers::ShebangRegexp#squash

Defined in:
lib/path_list/matchers/shebang_regexp.rb

#squash(list) ⇒ Object



17
18
19
# File 'lib/path_list/matchers/shebang_regexp.rb', line 17

def squash(list)
  self.class.new(::Regexp.union(list.map(&:rule)), @return_value == :allow)
end