Actions
Bug #7674
closedDocument for using Struct.new with block
Description
I wrote the document for using Struct.new with block.
Files
Updated by Glass_saga (Masaki Matsushita) almost 12 years ago
- Tracker changed from Bug to Feature
Updated by nobu (Nobuyoshi Nakada) almost 12 years ago
Nitpick.
-
Struct.new( [aString] [, aSym]+> ) {|| block } -> StructClass
Actually StructClass is passed to the block.
Updated by iwadon (Hiroyuki Iwatsuki) almost 12 years ago
- File struct.c.diff struct.c.diff added
=begin
Thank you for the comment! I understood.
$ ruby -e "p Struct.new(:x){|c| p(c, self)}"
#Class:0x007f8f738b9d90
#Class:0x007f8f738b9d90
#Class:0x007f8f738b9d90
I updated the patch.
=end
Updated by zzak (zzak _) almost 12 years ago
- Category set to doc
- Assignee set to zzak (zzak _)
- Target version set to 2.0.0
Updated by zzak (zzak _) almost 12 years ago
- Tracker changed from Feature to Bug
- ruby -v set to 2.0.0
missing documentation considered bug
Updated by zzak (zzak _) almost 12 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r38883.
Hiroyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- struct.c (Struct.new): Document Struct.new with block
Patch by Hiroyuki Iwatsuki [Bug #7674]
Actions
Like0
Like0Like0Like0Like0Like0Like0