Skip to content

include inside class << self #1560

Answered by lsegal
AlexWayfer asked this question in Q&A
Discussion options

You must be logged in to vote

@AlexWayfer after looking into this, it's actually behaving as I believe you want it to, it's just not quite as visually clear as you might hope. This is a templating issue, not a data integrity issue. Let me explain:

When you see Methods included from ..., you actually are seeing these methods as class level methods. The distinction is subtle, but if these were instance methods, you would see the method names with # prefixes. For example, if I update Command to remove class << self on the includes, it looks like this:

The reason it looks like they are being treated as inherited methods is because YARD structures the sections in the default template using the following pseudo-markdown as…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lsegal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #1352 on August 26, 2024 08:01.