From: nagachika00@... Date: 2017-12-20T14:56:54+00:00 Subject: [ruby-core:84367] [Ruby trunk Bug#13159] [DOC] Revise documentation for OpenStruct Issue #13159 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.2: DONE, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: DONE, 2.3: REQUIRED, 2.4: DONE ruby_2_4 r61364 merged revision(s) 57887. ---------------------------------------- Bug #13159: [DOC] Revise documentation for OpenStruct https://bugs.ruby-lang.org/issues/13159#change-68556 * Author: stomar (Marcus Stollsteimer) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [i686-linux] * Backport: 2.2: DONE, 2.3: REQUIRED, 2.4: DONE ---------------------------------------- ``` * update paragraph on implementation: define_singleton_method is used, not define_method * add call-seq with return values for each_pair * adopt description of dig from Array and Hash * fix description of the hash method * :nodoc: initialize_copy, respond_to_missing? * other small improvements, e.g. use the term `attribute' in the docs (instead of `member'), which is clearer for users of the class * improve code examples: e.g. use more consistent style (always use double quotes, drop `p' and `puts', ...), update inspect output, use example data that is not prone to change (like population) * add more code examples * fix some small errors and grammar ``` ---Files-------------------------------- doc_ostruct.patch (10.1 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: