Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute source code #1522

Open
pointlessone opened this issue Dec 19, 2023 · 0 comments
Open

Attribute source code #1522

pointlessone opened this issue Dec 19, 2023 · 0 comments

Comments

@pointlessone
Copy link
Contributor

Attribute documentation provides fictional code.

Steps to reproduce

Here's how an attribute is defined in the source file.

attr_reader :whatever

Actual Output

In the generated documentation source code for this attribute is this:

def whatever
  @whatever
end

Expected Output

I'd expect the source code to be extracted directly from the source file.

Environment details:

  • OS: macOS Sonoma 14.2
  • Ruby version (ruby -v): 3.0.0p0
  • YARD version (yard -v): 0.9.34

I have read the Contributing Guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant