Skip to content

Instantly share code, notes, and snippets.

@glyn
Created December 18, 2013 16:34
Show Gist options
  • Save glyn/8025385 to your computer and use it in GitHub Desktop.
Save glyn/8025385 to your computer and use it in GitHub Desktop.
Wondering how to use Yard to police or document overridden methods.
# yard doc A.rb does not document method B.a.
# yard stats --list-undoc A.rb reports 2 methods of which 0 are undocumented.
# A class.
class A
# a method.
def a
puts 'A.a'
end
end
# B class.
class B < A
def a
puts 'B.a'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment