Project

General

Profile

Bug #13159

[DOC] Revise documentation for OpenStruct

Added by stomar (Marcus Stollsteimer) over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [i686-linux]
[ruby-core:79265]

Description

* 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) doc_ostruct.patch stomar (Marcus Stollsteimer), 02/03/2017 09:01 PM

Associated revisions

Revision 44fbaaae
Added by stomar (Marcus Stollsteimer) over 2 years ago

lib/ostruct.rb: [DOC] revise docs for OpenStruct

  • 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 ofmember'), which is clearer for users of the class
  • improve code examples: e.g. use more consistent style (always use double quotes, drop p' andputs', ...), update inspect output, use example data that is not prone to change (like population)
  • add more code examples
  • fix some small errors and grammar

[ruby-core:79265] [Bug #13159]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57887
Added by stomar (Marcus Stollsteimer) over 2 years ago

lib/ostruct.rb: [DOC] revise docs for OpenStruct

  • 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 ofmember'), which is clearer for users of the class
  • improve code examples: e.g. use more consistent style (always use double quotes, drop p' andputs', ...), update inspect output, use example data that is not prone to change (like population)
  • add more code examples
  • fix some small errors and grammar

[ruby-core:79265] [Bug #13159]

Revision 57887
Added by stomar (Marcus Stollsteimer) over 2 years ago

lib/ostruct.rb: [DOC] revise docs for OpenStruct

  • 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 ofmember'), which is clearer for users of the class
  • improve code examples: e.g. use more consistent style (always use double quotes, drop p' andputs', ...), update inspect output, use example data that is not prone to change (like population)
  • add more code examples
  • fix some small errors and grammar

[ruby-core:79265] [Bug #13159]

Revision 57887
Added by stomar (Marcus Stollsteimer) over 2 years ago

lib/ostruct.rb: [DOC] revise docs for OpenStruct

  • 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 ofmember'), which is clearer for users of the class
  • improve code examples: e.g. use more consistent style (always use double quotes, drop p' andputs', ...), update inspect output, use example data that is not prone to change (like population)
  • add more code examples
  • fix some small errors and grammar

[ruby-core:79265] [Bug #13159]

Revision d823f587
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 57887: [Backport #13159]

    lib/ostruct.rb: [DOC] revise docs for OpenStruct

    * 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

    [ruby-core:79265] [Bug #13159]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58124
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 57887: [Backport #13159]

lib/ostruct.rb: [DOC] revise docs for OpenStruct

* 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

[ruby-core:79265] [Bug #13159]

Revision 82f0265c
Added by nagachika (Tomoyuki Chikanaga) over 1 year ago

merge revision(s) 57887: [Backport #13159]

    lib/ostruct.rb: [DOC] revise docs for OpenStruct

    * 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

    [ruby-core:79265] [Bug #13159]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@61364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 61364
Added by nagachika (Tomoyuki Chikanaga) over 1 year ago

merge revision(s) 57887: [Backport #13159]

lib/ostruct.rb: [DOC] revise docs for OpenStruct

* 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

[ruby-core:79265] [Bug #13159]

Revision 59475e58
Added by usa (Usaku NAKAMURA) over 1 year ago

merge revision(s) 57887: [Backport #13159]

    lib/ostruct.rb: [DOC] revise docs for OpenStruct

    * 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

    [ruby-core:79265] [Bug #13159]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 62127
Added by usa (Usaku NAKAMURA) over 1 year ago

merge revision(s) 57887: [Backport #13159]

lib/ostruct.rb: [DOC] revise docs for OpenStruct

* 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

[ruby-core:79265] [Bug #13159]

History

#1

Updated by stomar (Marcus Stollsteimer) over 2 years ago

  • File deleted (doc_ostruct.patch)

Updated by stomar (Marcus Stollsteimer) over 2 years ago

Patch updated to reflect r57515 (return value of each_pair).

#3

Updated by stomar (Marcus Stollsteimer) over 2 years ago

  • Status changed from Open to Closed

Applied in changeset r57887.


lib/ostruct.rb: [DOC] revise docs for OpenStruct

  • 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 ofmember'), which is clearer for users of the class
  • improve code examples: e.g. use more consistent style (always use double quotes, drop p' andputs', ...), update inspect output, use example data that is not prone to change (like population)
  • add more code examples
  • fix some small errors and grammar

[ruby-core:79265] [Bug #13159]

#4

Updated by usa (Usaku NAKAMURA) about 2 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED

Updated by usa (Usaku NAKAMURA) about 2 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: DONE, 2.3: REQUIRED, 2.4: REQUIRED

ruby_2_2 r58124 merged revision(s) 57887.

Updated by nagachika (Tomoyuki Chikanaga) over 1 year ago

  • 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.

Updated by usa (Usaku NAKAMURA) over 1 year ago

  • Backport changed from 2.2: DONE, 2.3: REQUIRED, 2.4: DONE to 2.2: DONE, 2.3: DONE, 2.4: DONE

ruby_2_3 r62127 merged revision(s) 57887.

Also available in: Atom PDF