Module: FastIgnore::Builders::ShebangOrGitignore

Defined in:
lib/fast_ignore/builders/shebang_or_gitignore.rb

Class Method Summary collapse

Class Method Details

.build(rule, allow, expand_path_with: nil) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/fast_ignore/builders/shebang_or_gitignore.rb', line 6

def self.build(rule, allow, expand_path_with: nil)
  if rule.delete_prefix!('#!:')
    ::FastIgnore::Builders::Shebang.build(rule, allow)
  else
    ::FastIgnore::Builders::Gitignore.build(rule, allow, expand_path_with: expand_path_with)
  end
end