* struct.c: Standardize a method signature of Struct#[]=.
[ci skip][fix GH-1095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d736eded9d
commit
c9baf1fabf
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 16 15:58:39 2015 Kenichi Kamiya <kachick1@gmail.com>
|
||||||
|
|
||||||
|
* struct.c: Standardize a method signature of Struct#[]=.
|
||||||
|
[ci skip][fix GH-1095]
|
||||||
|
|
||||||
Mon Nov 16 15:42:36 2015 Akinori MUSHA <knu@iDaemons.org>
|
Mon Nov 16 15:42:36 2015 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* lib/set.rb (#>=, #>, #<=, #<): Make use of Hash#>=, #>, #<, and
|
* lib/set.rb (#>=, #>, #<=, #<): Make use of Hash#>=, #>, #<, and
|
||||||
|
6
struct.c
6
struct.c
@ -896,11 +896,11 @@ rb_struct_aref(VALUE s, VALUE idx)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* struct[name] = obj -> obj
|
* struct[member] = obj -> obj
|
||||||
* struct[index] = obj -> obj
|
* struct[index] = obj -> obj
|
||||||
*
|
*
|
||||||
* Attribute Assignment---Sets the value of the given struct +member+ or
|
* Attribute Assignment---Sets the value of the given struct +member+ or
|
||||||
* the member at the given +index+. Raises NameError if the +name+ does not
|
* the member at the given +index+. Raises NameError if the +member+ does not
|
||||||
* exist and IndexError if the +index+ is out of range.
|
* exist and IndexError if the +index+ is out of range.
|
||||||
*
|
*
|
||||||
* Customer = Struct.new(:name, :address, :zip)
|
* Customer = Struct.new(:name, :address, :zip)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user