mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Fix typos
This commit is contained in:
parent
db2ebbd71b
commit
c3f91f9d88
1 changed files with 4 additions and 4 deletions
8
object.c
8
object.c
|
@ -2263,7 +2263,7 @@ id_for_attr(VALUE obj, VALUE name)
|
|||
* value of each instance variable. Equivalent to calling
|
||||
* ``<code>attr</code><i>:name</i>'' on each name in turn.
|
||||
* String arguments are converted to symbols.
|
||||
* Returns an array of defined methods names as symbols.
|
||||
* Returns an array of defined method names as symbols.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
@ -2289,7 +2289,7 @@ rb_mod_attr_reader(int argc, VALUE *argv, VALUE klass)
|
|||
* The first form is equivalent to #attr_reader.
|
||||
* The second form is equivalent to <code>attr_accessor(name)</code> but deprecated.
|
||||
* The last form is equivalent to <code>attr_reader(name)</code> but deprecated.
|
||||
* Returns an array of defined methods names as symbols.
|
||||
* Returns an array of defined method names as symbols.
|
||||
*--
|
||||
* \private
|
||||
* \todo can be static?
|
||||
|
@ -2319,7 +2319,7 @@ rb_mod_attr(int argc, VALUE *argv, VALUE klass)
|
|||
* Creates an accessor method to allow assignment to the attribute
|
||||
* <i>symbol</i><code>.id2name</code>.
|
||||
* String arguments are converted to symbols.
|
||||
* Returns an array of defined methods names as symbols.
|
||||
* Returns an array of defined method names as symbols.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
@ -2346,7 +2346,7 @@ rb_mod_attr_writer(int argc, VALUE *argv, VALUE klass)
|
|||
* (<code>@name</code>) and a corresponding access method to read it.
|
||||
* Also creates a method called <code>name=</code> to set the attribute.
|
||||
* String arguments are converted to symbols.
|
||||
* Returns an array of defined methods names as symbols.
|
||||
* Returns an array of defined method names as symbols.
|
||||
*
|
||||
* module Mod
|
||||
* attr_accessor(:one, :two) #=> [:one, :one=, :two, :two=]
|
||||
|
|
Loading…
Add table
Reference in a new issue