dkubb / yardstick

A tool for verifying YARD documentation coverage
http://wiki.github.com/dkubb/yardstick
MIT License
171 stars 22 forks source link

errors with %() syntax #47

Open stevenspiel opened 8 years ago

stevenspiel commented 8 years ago

I have a method:

def log_status_change
  logger %(
    foo #{bar}
  )
end

and when running yardstick 'app/**/*rb' from the command line, it returns:

ruby-2.3.1/gems/yardstick-0.9.9/lib/yardstick/parser.rb:53:in `select': undefined method `file' for nil:NilClass (NoMethodError)

So, after doing some digging, YARD::Registry.all(:method) returns an array, and for the #log_status_change method above, it returns:

[
  ...
  #<yardoc method StateMachineBase#(
      foo #{bar}
    >,
  ...
]