Skip to content

Hover Definitions for Ruby Keywords #2227

Open
@jamesmengo

Description

@jamesmengo

Set up the tooltips

Add tooltips to these keywords. The markdown files should have the description below and a newbie-friendly description.

Try to avoid having tooltips which are over-zealous (e.g. DefNode will work on any keyword within a method definition).

Tooltips

Preview Give feedback

Write long-form documentation

Write newbie-friendly documentation in .md form for each of the following keywords. Once written, link to it from the tooltip. The link should open the markdown file locally in the editor.

Please see the north star comment from @vinistock below:

Expand thoughts on newbie-friendly documentation

I would expand on certain things and try to be super exhaustive with all aspects of the language. For example, in the methods documentation, what is a method?
In the modules documentation, we could explain that they are Ruby's way of supporting multiple inheritance, since it does not allow for more than on parent class. We should also mention the differences between prepending, including or extending a module

The goal of these docs is to make someone who is new to Ruby (or new to programming altogether) be able to gather a better understanding of how Ruby works from inside the editor. So a good exercise is trying to put yourself into the position of a newbie. What could be confusing? What was unclear when you first started with Ruby?

Long-form docs

Preview Give feedback

Special Cases

Preview Give feedback

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationhelp-wantedExtra attention is neededpinnedThis issue or pull request is pinned and won't be marked as stale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions