Open stevenspiel opened 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:
yardstick 'app/**/*rb'
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:
YARD::Registry.all(:method)
#log_status_change
[ ... #<yardoc method StateMachineBase#( foo #{bar} >, ... ]
I have a method:
and when running
yardstick 'app/**/*rb'
from the command line, it returns:So, after doing some digging,
YARD::Registry.all(:method)
returns an array, and for the#log_status_change
method above, it returns: