-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document block for Struct.new if present
The documentation of Ruby says: > If a block is given it will be evaluated in the context of StructClass, > assing the created class as a parameter: > (snip) > This is the recommended way to customize a struct. Subclassing an > anonymous struct creates an extra anonymous class that will never be > used. This change implements documentation for such usage.
- Loading branch information
1 parent
a85a262
commit 343b314
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters