Method: Degem::ParseRuby#call

Defined in:
lib/degem/parse_ruby.rb

#call(path) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/degem/parse_ruby.rb', line 9

def call(path)
  visitor = @visitor.new
  Array(path).each do |path|
    visitor.path = path
    Prism.parse_file(path).value.accept(visitor)
    Degem.stderr.putc "."
  end
  visitor
end