Method: PathSpec#initialize

Defined in:
lib/pathspec.rb

#initialize(lines = nil, type = :git) ⇒ PathSpec

Returns a new instance of PathSpec.



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

def initialize(lines = nil, type = :git)
  @specs = []

  add(lines, type) if lines

  self
end