Skip to content
New issue

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

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

Already on GitHub? # to your account

Add T::Enum support #43

Closed
dduugg opened this issue May 24, 2021 · 0 comments · Fixed by #44
Closed

Add T::Enum support #43

dduugg opened this issue May 24, 2021 · 0 comments · Fixed by #44
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dduugg
Copy link
Owner

dduugg commented May 24, 2021

YARD currently skips over the enums block. Thus, to use the Sorbet docs example, this code:

class Suit < T::Enum
  enums do
    Spades = new
    Hearts = new
    Clubs = new
    Diamonds = new
  end
end

resulds in the following YARD documentation:
image

We should add a handler that displays the values defined in the enums block.

@dduugg dduugg added enhancement New feature or request good first issue Good for newcomers labels May 24, 2021
@dduugg dduugg self-assigned this May 24, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant