Method: Danger::PluginParser#initialize

Defined in:
lib/danger/plugin_support/plugin_parser.rb

#initialize(paths, verbose = false) ⇒ PluginParser

Returns a new instance of PluginParser.



37
38
39
40
41
42
43
44
45
46
47
# File 'lib/danger/plugin_support/plugin_parser.rb', line 37

def initialize(paths, verbose = false)
  raise "Path cannot be empty" if paths.empty?

  setup_yard(verbose)

  if paths.kind_of? String
    @paths = [File.expand_path(paths)]
  else
    @paths = paths
  end
end