Module: PathList::RuleBuilder

Defined in:
lib/path_list/rule_builder.rb

Class Method Summary collapse

Class Method Details

.build(rule, allow, format, root) ⇒ Object

:nocov:



10
11
12
13
14
15
16
# File 'lib/path_list/rule_builder.rb', line 10

def build(rule, allow, format, root)
  if rule.delete_prefix!('#!:')
    shebang_rules(rule, allow)
  else
    gitignore_rules(rule, allow, format, root)
  end
end