[ruby-cvs:65295] usa:r58124 (ruby_2_2): merge revision(s) 57887: [Backport #13159]

usa at ruby-lang.org usa at ruby-lang.org
Sun Mar 26 03:35:09 JST 2017


usa	2017-03-26 03:35:09 +0900 (Sun, 26 Mar 2017)

  New Revision: 58124

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58124

  Log:
    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]

  Modified directories:
    branches/ruby_2_2/
  Modified files:
    branches/ruby_2_2/lib/ostruct.rb
    branches/ruby_2_2/version.h


More information about the ruby-cvs mailing list