tmm1 / ripper-tags

fast, accurate ctags generator for ruby source code using Ripper
MIT License
550 stars 43 forks source link

Support one-line method declaration with access #66

Closed larrylv closed 7 years ago

larrylv commented 7 years ago

We could write Ruby code like this because def will return the defined method itself:

private_class_method def self.foo
  'bar'
end

Previously, ripper-tags won't recognize them and generate the concrete tag, this PR will add the support.

mislav commented 7 years ago

These tests look pretty awesome. Thank you!