replace fixnum by integer in documents.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2016-09-08 04:57:49 +00:00
parent bbd662c8bd
commit 577de1e93d
15 changed files with 123 additions and 123 deletions

View File

@ -3903,7 +3903,7 @@ rb_ary_eql(VALUE ary1, VALUE ary2)
/*
* call-seq:
* ary.hash -> fixnum
* ary.hash -> integer
*
* Compute a hash-code for this array.
*

View File

@ -1050,7 +1050,7 @@ exit_initialize(int argc, VALUE *argv, VALUE exc)
/*
* call-seq:
* system_exit.status -> fixnum
* system_exit.status -> integer
*
* Return the status value associated with this system exit.
*/
@ -1557,7 +1557,7 @@ syserr_initialize(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
* system_call_error.errno -> fixnum
* system_call_error.errno -> integer
*
* Return this SystemCallError's error number.
*/

32
file.c
View File

@ -471,7 +471,7 @@ rb_stat_cmp(VALUE self, VALUE other)
/*
* call-seq:
* stat.dev -> fixnum
* stat.dev -> integer
*
* Returns an integer representing the device on which <i>stat</i>
* resides.
@ -487,7 +487,7 @@ rb_stat_dev(VALUE self)
/*
* call-seq:
* stat.dev_major -> fixnum
* stat.dev_major -> integer
*
* Returns the major part of <code>File_Stat#dev</code> or
* <code>nil</code>.
@ -508,7 +508,7 @@ rb_stat_dev_major(VALUE self)
/*
* call-seq:
* stat.dev_minor -> fixnum
* stat.dev_minor -> integer
*
* Returns the minor part of <code>File_Stat#dev</code> or
* <code>nil</code>.
@ -529,7 +529,7 @@ rb_stat_dev_minor(VALUE self)
/*
* call-seq:
* stat.ino -> fixnum
* stat.ino -> integer
*
* Returns the inode number for <i>stat</i>.
*
@ -560,7 +560,7 @@ rb_stat_ino(VALUE self)
/*
* call-seq:
* stat.mode -> fixnum
* stat.mode -> integer
*
* Returns an integer representing the permission bits of
* <i>stat</i>. The meaning of the bits is platform dependent; on
@ -579,7 +579,7 @@ rb_stat_mode(VALUE self)
/*
* call-seq:
* stat.nlink -> fixnum
* stat.nlink -> integer
*
* Returns the number of hard links to <i>stat</i>.
*
@ -597,7 +597,7 @@ rb_stat_nlink(VALUE self)
/*
* call-seq:
* stat.uid -> fixnum
* stat.uid -> integer
*
* Returns the numeric user id of the owner of <i>stat</i>.
*
@ -613,7 +613,7 @@ rb_stat_uid(VALUE self)
/*
* call-seq:
* stat.gid -> fixnum
* stat.gid -> integer
*
* Returns the numeric group id of the owner of <i>stat</i>.
*
@ -629,7 +629,7 @@ rb_stat_gid(VALUE self)
/*
* call-seq:
* stat.rdev -> fixnum or nil
* stat.rdev -> integer or nil
*
* Returns an integer representing the device type on which
* <i>stat</i> resides. Returns <code>nil</code> if the operating
@ -651,7 +651,7 @@ rb_stat_rdev(VALUE self)
/*
* call-seq:
* stat.rdev_major -> fixnum
* stat.rdev_major -> integer
*
* Returns the major part of <code>File_Stat#rdev</code> or
* <code>nil</code>.
@ -672,7 +672,7 @@ rb_stat_rdev_major(VALUE self)
/*
* call-seq:
* stat.rdev_minor -> fixnum
* stat.rdev_minor -> integer
*
* Returns the minor part of <code>File_Stat#rdev</code> or
* <code>nil</code>.
@ -693,7 +693,7 @@ rb_stat_rdev_minor(VALUE self)
/*
* call-seq:
* stat.size -> fixnum
* stat.size -> integer
*
* Returns the size of <i>stat</i> in bytes.
*
@ -1579,7 +1579,7 @@ rb_file_readable_real_p(VALUE obj, VALUE fname)
/*
* call-seq:
* File.world_readable?(file_name) -> fixnum or nil
* File.world_readable?(file_name) -> integer or nil
*
* If <i>file_name</i> is readable by others, returns an integer
* representing the file permission bits of <i>file_name</i>. Returns
@ -1643,7 +1643,7 @@ rb_file_writable_real_p(VALUE obj, VALUE fname)
/*
* call-seq:
* File.world_writable?(file_name) -> fixnum or nil
* File.world_writable?(file_name) -> integer or nil
*
* If <i>file_name</i> is writable by others, returns an integer
* representing the file permission bits of <i>file_name</i>. Returns
@ -5183,7 +5183,7 @@ rb_stat_R(VALUE obj)
/*
* call-seq:
* stat.world_readable? -> fixnum or nil
* stat.world_readable? -> integer or nil
*
* If <i>stat</i> is readable by others, returns an integer
* representing the file permission bits of <i>stat</i>. Returns
@ -5276,7 +5276,7 @@ rb_stat_W(VALUE obj)
/*
* call-seq:
* stat.world_writable? -> fixnum or nil
* stat.world_writable? -> integer or nil
*
* If <i>stat</i> is writable by others, returns an integer
* representing the file permission bits of <i>stat</i>. Returns

6
gc.c
View File

@ -2512,7 +2512,7 @@ os_obj_of(VALUE of)
/*
* call-seq:
* ObjectSpace.each_object([module]) {|obj| ... } -> fixnum
* ObjectSpace.each_object([module]) {|obj| ... } -> integer
* ObjectSpace.each_object([module]) -> an_enumerator
*
* Calls the block once for each living, nonimmediate object in this
@ -7207,7 +7207,7 @@ rb_gc_stat(VALUE key)
/*
* call-seq:
* GC.stress -> fixnum, true or false
* GC.stress -> integer, true or false
*
* Returns current status of GC stress mode.
*/
@ -7237,7 +7237,7 @@ gc_stress_set(rb_objspace_t *objspace, VALUE flag)
*
* Enabling stress mode will degrade performance, it is only for debugging.
*
* flag can be true, false, or a fixnum bit-ORed following flags.
* flag can be true, false, or a integer bit-ORed following flags.
* 0x01:: no major GC
* 0x02:: no immediate sweep
* 0x04:: full mark after malloc/calloc/realloc

6
hash.c
View File

@ -1639,8 +1639,8 @@ rb_hash_replace(VALUE hash, VALUE hash2)
/*
* call-seq:
* hsh.length -> fixnum
* hsh.size -> fixnum
* hsh.length -> integer
* hsh.size -> integer
*
* Returns the number of key-value pairs in the hash.
*
@ -2256,7 +2256,7 @@ hash_i(VALUE key, VALUE val, VALUE arg)
/*
* call-seq:
* hsh.hash -> fixnum
* hsh.hash -> integer
*
* Compute a hash-code for this hash. Two hashes with the same content
* will have the same hash code (and will compare using <code>eql?</code>).

26
io.c
View File

@ -1980,8 +1980,8 @@ rb_io_fdatasync(VALUE io)
/*
* call-seq:
* ios.fileno -> fixnum
* ios.to_i -> fixnum
* ios.fileno -> integer
* ios.to_i -> integer
*
* Returns an integer representing the numeric file descriptor for
* <em>ios</em>.
@ -2004,7 +2004,7 @@ rb_io_fileno(VALUE io)
/*
* call-seq:
* ios.pid -> fixnum
* ios.pid -> integer
*
* Returns the process ID of a child process associated with
* <em>ios</em>. This will be set by <code>IO.popen</code>.
@ -3842,7 +3842,7 @@ rb_io_readchar(VALUE io)
/*
* call-seq:
* ios.getbyte -> fixnum or nil
* ios.getbyte -> integer or nil
*
* Gets the next 8-bit byte (0..255) from <em>ios</em>. Returns
* <code>nil</code> if called at end of file.
@ -3879,7 +3879,7 @@ rb_io_getbyte(VALUE io)
/*
* call-seq:
* ios.readbyte -> fixnum
* ios.readbyte -> integer
*
* Reads a byte as with <code>IO#getbyte</code>, but raises an
* <code>EOFError</code> on end of file.
@ -6438,7 +6438,7 @@ rb_io_s_open(int argc, VALUE *argv, VALUE klass)
/*
* call-seq:
* IO.sysopen(path, [mode, [perm]]) -> fixnum
* IO.sysopen(path, [mode, [perm]]) -> integer
*
* Opens the given path, returning the underlying file descriptor as a
* <code>Fixnum</code>.
@ -10021,8 +10021,8 @@ io_s_write(int argc, VALUE *argv, int binary)
/*
* call-seq:
* IO.write(name, string, [offset] ) => fixnum
* IO.write(name, string, [offset], open_args ) => fixnum
* IO.write(name, string, [offset] ) => integer
* IO.write(name, string, [offset], open_args ) => integer
*
* Opens the file, optionally seeks to the given <i>offset</i>, writes
* <i>string</i>, then returns the length written.
@ -10044,7 +10044,7 @@ io_s_write(int argc, VALUE *argv, int binary)
* specifies mode argument for open(). it should start with "w" or "a" or "r+"
* otherwise it would cause error.
*
* perm: fixnum
* perm: integer
*
* specifies perm argument for open().
*
@ -10066,8 +10066,8 @@ rb_io_s_write(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
* IO.binwrite(name, string, [offset] ) => fixnum
* IO.binwrite(name, string, [offset], open_args ) => fixnum
* IO.binwrite(name, string, [offset] ) => integer
* IO.binwrite(name, string, [offset], open_args ) => integer
*
* Same as <code>IO.write</code> except opening the file in binary mode
* and ASCII-8BIT encoding ("wb:ASCII-8BIT").
@ -11067,8 +11067,8 @@ argf_rewind(VALUE argf)
/*
* call-seq:
* ARGF.fileno -> fixnum
* ARGF.to_i -> fixnum
* ARGF.fileno -> integer
* ARGF.to_i -> integer
*
* Returns an integer representing the numeric file descriptor for
* the current file. Raises an +ArgumentError+ if there isn't a current file.

View File

@ -145,7 +145,7 @@ rb_obj_equal(VALUE obj1, VALUE obj2)
#if 0
/*
* call-seq:
* obj.hash -> fixnum
* obj.hash -> integer
*
* Generates a Fixnum hash value for this object. This function must have the
* property that <code>a.eql?(b)</code> implies <code>a.hash == b.hash</code>.

4
proc.c
View File

@ -873,7 +873,7 @@ rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_pr
/*
* call-seq:
* prc.arity -> fixnum
* prc.arity -> integer
*
* Returns the number of mandatory arguments. If the block
* is declared to take no arguments, returns 0. If the block is known
@ -2300,7 +2300,7 @@ rb_method_entry_arity(const rb_method_entry_t *me)
/*
* call-seq:
* meth.arity -> fixnum
* meth.arity -> integer
*
* Returns an indication of the number of arguments accepted by a
* method. Returns a nonnegative integer for methods that take a fixed

View File

@ -405,7 +405,7 @@ parent_redirect_close(int fd)
/*
* call-seq:
* Process.pid -> fixnum
* Process.pid -> integer
*
* Returns the process id of this process. Not available on all
* platforms.
@ -422,7 +422,7 @@ get_pid(void)
/*
* call-seq:
* Process.ppid -> fixnum
* Process.ppid -> integer
*
* Returns the process id of the parent of this process. Returns
* untrustworthy value on Win32/64. Not available on all platforms.
@ -498,8 +498,8 @@ rb_last_status_clear(void)
/*
* call-seq:
* stat.to_i -> fixnum
* stat.to_int -> fixnum
* stat.to_i -> integer
* stat.to_int -> integer
*
* Returns the bits in _stat_ as a <code>Fixnum</code>. Poking
* around in these bits is platform dependent.
@ -519,7 +519,7 @@ pst_to_i(VALUE st)
/*
* call-seq:
* stat.pid -> fixnum
* stat.pid -> integer
*
* Returns the process ID that this status object represents.
*
@ -646,7 +646,7 @@ pst_equal(VALUE st1, VALUE st2)
/*
* call-seq:
* stat & num -> fixnum
* stat & num -> integer
*
* Logical AND of the bits in _stat_ with <em>num</em>.
*
@ -667,7 +667,7 @@ pst_bitand(VALUE st1, VALUE st2)
/*
* call-seq:
* stat >> num -> fixnum
* stat >> num -> integer
*
* Shift the bits in _stat_ right <em>num</em> places.
*
@ -709,7 +709,7 @@ pst_wifstopped(VALUE st)
/*
* call-seq:
* stat.stopsig -> fixnum or nil
* stat.stopsig -> integer or nil
*
* Returns the number of the signal that caused _stat_ to stop
* (or +nil+ if self is not stopped).
@ -748,7 +748,7 @@ pst_wifsignaled(VALUE st)
/*
* call-seq:
* stat.termsig -> fixnum or nil
* stat.termsig -> integer or nil
*
* Returns the number of the signal that caused _stat_ to
* terminate (or +nil+ if self was not terminated by an
@ -789,7 +789,7 @@ pst_wifexited(VALUE st)
/*
* call-seq:
* stat.exitstatus -> fixnum or nil
* stat.exitstatus -> integer or nil
*
* Returns the least significant eight bits of the return code of
* _stat_. Only available if <code>exited?</code> is
@ -936,9 +936,9 @@ rb_waitpid(rb_pid_t pid, int *st, int flags)
/*
* call-seq:
* Process.wait() -> fixnum
* Process.wait(pid=-1, flags=0) -> fixnum
* Process.waitpid(pid=-1, flags=0) -> fixnum
* Process.wait() -> integer
* Process.wait(pid=-1, flags=0) -> integer
* Process.waitpid(pid=-1, flags=0) -> integer
*
* Waits for a child process to exit, returns its process id, and
* sets <code>$?</code> to a <code>Process::Status</code> object
@ -3646,8 +3646,8 @@ rb_fork_ruby(int *status)
#if defined(HAVE_WORKING_FORK) && !defined(CANNOT_FORK_WITH_PTHREAD)
/*
* call-seq:
* Kernel.fork [{ block }] -> fixnum or nil
* Process.fork [{ block }] -> fixnum or nil
* Kernel.fork [{ block }] -> integer or nil
* Process.fork [{ block }] -> integer or nil
*
* Creates a subprocess. If a block is specified, that block is run
* in the subprocess, and the subprocess terminates with a status of
@ -4188,7 +4188,7 @@ rb_f_system(int argc, VALUE *argv)
*
* pid = spawn(command, :umask=>077)
*
* The :in, :out, :err, a fixnum, an IO and an array key specifies a redirection.
* The :in, :out, :err, a integer, an IO and an array key specifies a redirection.
* The redirection maps a file descriptor in the child process.
*
* For example, stderr can be merged into stdout as follows:
@ -4346,7 +4346,7 @@ rb_f_spawn(int argc, VALUE *argv)
/*
* call-seq:
* sleep([duration]) -> fixnum
* sleep([duration]) -> integer
*
* Suspends the current thread for _duration_ seconds (which may be any number,
* including a +Float+ with fractional seconds). Returns the actual number of
@ -4529,7 +4529,7 @@ static rb_pid_t ruby_setsid(void);
#endif
/*
* call-seq:
* Process.setsid -> fixnum
* Process.setsid -> integer
*
* Establishes this process as a new session and process group
* leader, with no controlling tty. Returns the session id. Not
@ -4583,7 +4583,7 @@ ruby_setsid(void)
#ifdef HAVE_GETPRIORITY
/*
* call-seq:
* Process.getpriority(kind, integer) -> fixnum
* Process.getpriority(kind, integer) -> integer
*
* Gets the scheduling priority for specified process, process group,
* or user. <em>kind</em> indicates the kind of entity to find: one
@ -5274,9 +5274,9 @@ p_sys_setresuid(VALUE obj, VALUE rid, VALUE eid, VALUE sid)
/*
* call-seq:
* Process.uid -> fixnum
* Process::UID.rid -> fixnum
* Process::Sys.getuid -> fixnum
* Process.uid -> integer
* Process::UID.rid -> integer
* Process::Sys.getuid -> integer
*
* Returns the (real) user ID of this process.
*
@ -5360,7 +5360,7 @@ setreuid(rb_uid_t ruid, rb_uid_t euid)
/*
* call-seq:
* Process::UID.change_privilege(user) -> fixnum
* Process::UID.change_privilege(user) -> integer
*
* Change the current process's real and effective user ID to that
* specified by _user_. Returns the new user ID. Not
@ -5681,9 +5681,9 @@ p_sys_issetugid(VALUE obj)
/*
* call-seq:
* Process.gid -> fixnum
* Process::GID.rid -> fixnum
* Process::Sys.getgid -> fixnum
* Process.gid -> integer
* Process::GID.rid -> integer
* Process::Sys.getgid -> integer
*
* Returns the (real) group ID for this process.
*
@ -5701,7 +5701,7 @@ proc_getgid(VALUE obj)
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETRGID) || defined(HAVE_SETGID)
/*
* call-seq:
* Process.gid= fixnum -> fixnum
* Process.gid= integer -> integer
*
* Sets the group ID for this process.
*/
@ -5909,7 +5909,7 @@ proc_initgroups(VALUE obj, VALUE uname, VALUE base_grp)
#if defined(_SC_NGROUPS_MAX) || defined(NGROUPS_MAX)
/*
* call-seq:
* Process.maxgroups -> fixnum
* Process.maxgroups -> integer
*
* Returns the maximum number of gids allowed in the supplemental
* group access list.
@ -5929,7 +5929,7 @@ proc_getmaxgroups(VALUE obj)
#ifdef HAVE_SETGROUPS
/*
* call-seq:
* Process.maxgroups= fixnum -> fixnum
* Process.maxgroups= integer -> integer
*
* Sets the maximum number of gids allowed in the supplemental group
* access list.
@ -6064,7 +6064,7 @@ setregid(rb_gid_t rgid, rb_gid_t egid)
/*
* call-seq:
* Process::GID.change_privilege(group) -> fixnum
* Process::GID.change_privilege(group) -> integer
*
* Change the current process's real and effective group ID to that
* specified by _group_. Returns the new group ID. Not
@ -6233,9 +6233,9 @@ p_gid_change_privilege(VALUE obj, VALUE id)
/*
* call-seq:
* Process.euid -> fixnum
* Process::UID.eid -> fixnum
* Process::Sys.geteuid -> fixnum
* Process.euid -> integer
* Process::UID.eid -> integer
* Process::Sys.geteuid -> integer
*
* Returns the effective user ID for this process.
*
@ -6334,8 +6334,8 @@ rb_seteuid_core(rb_uid_t euid)
/*
* call-seq:
* Process::UID.grant_privilege(user) -> fixnum
* Process::UID.eid= user -> fixnum
* Process::UID.grant_privilege(user) -> integer
* Process::UID.eid= user -> integer
*
* Set the effective user ID, and if possible, the saved user ID of
* the process to the given _user_. Returns the new
@ -6356,9 +6356,9 @@ p_uid_grant_privilege(VALUE obj, VALUE id)
/*
* call-seq:
* Process.egid -> fixnum
* Process::GID.eid -> fixnum
* Process::Sys.geteid -> fixnum
* Process.egid -> integer
* Process::GID.eid -> integer
* Process::Sys.geteid -> integer
*
* Returns the effective group ID for this process. Not available on
* all platforms.
@ -6377,7 +6377,7 @@ proc_getegid(VALUE obj)
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID) || defined(_POSIX_SAVED_IDS)
/*
* call-seq:
* Process.egid = fixnum -> fixnum
* Process.egid = integer -> integer
*
* Sets the effective group ID for this process. Not available on all
* platforms.
@ -6464,8 +6464,8 @@ rb_setegid_core(rb_gid_t egid)
/*
* call-seq:
* Process::GID.grant_privilege(group) -> fixnum
* Process::GID.eid = group -> fixnum
* Process::GID.grant_privilege(group) -> integer
* Process::GID.eid = group -> integer
*
* Set the effective group ID, and if possible, the saved group ID of
* the process to the given _group_. Returns the new
@ -6508,7 +6508,7 @@ p_uid_exchangeable(void)
/*
* call-seq:
* Process::UID.re_exchange -> fixnum
* Process::UID.re_exchange -> integer
*
* Exchange real and effective user IDs and return the new effective
* user ID. Not available on all platforms.
@ -6570,7 +6570,7 @@ p_gid_exchangeable(void)
/*
* call-seq:
* Process::GID.re_exchange -> fixnum
* Process::GID.re_exchange -> integer
*
* Exchange real and effective group IDs and return the new effective
* group ID. Not available on all platforms.
@ -6641,7 +6641,7 @@ p_uid_sw_ensure(rb_uid_t id)
/*
* call-seq:
* Process::UID.switch -> fixnum
* Process::UID.switch -> integer
* Process::UID.switch {|| block} -> object
*
* Switch the effective and real user IDs of the current process. If
@ -6754,7 +6754,7 @@ p_gid_sw_ensure(rb_gid_t id)
/*
* call-seq:
* Process::GID.switch -> fixnum
* Process::GID.switch -> integer
* Process::GID.switch {|| block} -> object
*
* Switch the effective and real group IDs of the current process. If

View File

@ -226,7 +226,7 @@ range_eql(VALUE range, VALUE obj)
/*
* call-seq:
* rng.hash -> fixnum
* rng.hash -> integer
*
* Compute a hash-code for this range. Two ranges with equal
* begin and end points (using <code>eql?</code>), and the same

4
re.c
View File

@ -724,7 +724,7 @@ rb_reg_casefold_p(VALUE re)
/*
* call-seq:
* rxp.options -> fixnum
* rxp.options -> integer
*
* Returns the set of bits corresponding to the options used when creating this
* Regexp (see <code>Regexp::new</code> for details. Note that additional bits
@ -2877,7 +2877,7 @@ rb_reg_regcomp(VALUE str)
static st_index_t reg_hash(VALUE re);
/*
* call-seq:
* rxp.hash -> fixnum
* rxp.hash -> integer
*
* Produce a hash based on the text and options of this regular expression.
*

View File

@ -368,7 +368,7 @@ static void signal_enque(int sig);
/*
* call-seq:
* Process.kill(signal, pid, ...) -> fixnum
* Process.kill(signal, pid, ...) -> integer
*
* Sends the given signal to the specified process id(s) if _pid_ is positive.
* If _pid_ is zero _signal_ is sent to all processes whose group ID is equal

View File

@ -2954,7 +2954,7 @@ rb_str_hash_cmp(VALUE str1, VALUE str2)
/*
* call-seq:
* str.hash -> fixnum
* str.hash -> integer
*
* Return a hash based on the string's length, content and encoding.
*
@ -3245,8 +3245,8 @@ rb_strseq_index(VALUE str, VALUE sub, long offset, int in_byte)
/*
* call-seq:
* str.index(substring [, offset]) -> fixnum or nil
* str.index(regexp [, offset]) -> fixnum or nil
* str.index(substring [, offset]) -> integer or nil
* str.index(regexp [, offset]) -> integer or nil
*
* Returns the index of the first occurrence of the given <i>substring</i> or
* pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not
@ -3409,8 +3409,8 @@ rb_str_rindex(VALUE str, VALUE sub, long pos)
/*
* call-seq:
* str.rindex(substring [, fixnum]) -> fixnum or nil
* str.rindex(regexp [, fixnum]) -> fixnum or nil
* str.rindex(substring [, integer]) -> integer or nil
* str.rindex(regexp [, integer]) -> integer or nil
*
* Returns the index of the last occurrence of the given <i>substring</i> or
* pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not
@ -3486,7 +3486,7 @@ rb_str_rindex_m(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
* str =~ obj -> fixnum or nil
* str =~ obj -> integer or nil
*
* Match---If <i>obj</i> is a <code>Regexp</code>, use it as a pattern to match
* against <i>str</i>,and returns the position the match starts, or
@ -4411,11 +4411,11 @@ rb_str_aset(VALUE str, VALUE indx, VALUE val)
/*
* call-seq:
* str[fixnum] = new_str
* str[fixnum, fixnum] = new_str
* str[integer] = new_str
* str[integer, integer] = new_str
* str[range] = aString
* str[regexp] = new_str
* str[regexp, fixnum] = new_str
* str[regexp, integer] = new_str
* str[regexp, name] = new_str
* str[other_str] = new_str
*
@ -4485,8 +4485,8 @@ rb_str_insert(VALUE str, VALUE idx, VALUE str2)
/*
* call-seq:
* str.slice!(fixnum) -> new_str or nil
* str.slice!(fixnum, fixnum) -> new_str or nil
* str.slice!(integer) -> new_str or nil
* str.slice!(integer, integer) -> new_str or nil
* str.slice!(range) -> new_str or nil
* str.slice!(regexp) -> new_str or nil
* str.slice!(other_str) -> new_str or nil
@ -5194,8 +5194,8 @@ str_byte_aref(VALUE str, VALUE indx)
/*
* call-seq:
* str.byteslice(fixnum) -> new_str or nil
* str.byteslice(fixnum, fixnum) -> new_str or nil
* str.byteslice(integer) -> new_str or nil
* str.byteslice(integer, integer) -> new_str or nil
* str.byteslice(range) -> new_str or nil
*
* Byte Reference---If passed a single <code>Fixnum</code>, returns a
@ -6942,7 +6942,7 @@ rb_str_tr_s(VALUE str, VALUE src, VALUE repl)
/*
* call-seq:
* str.count([other_str]+) -> fixnum
* str.count([other_str]+) -> integer
*
* Each +other_str+ parameter defines a set of characters to count. The
* intersection of these sets defines the characters to count in +str+. Any
@ -7552,7 +7552,7 @@ rb_str_enumerate_bytes(VALUE str, int wantarray)
/*
* call-seq:
* str.each_byte {|fixnum| block } -> str
* str.each_byte {|integer| block } -> str
* str.each_byte -> an_enumerator
*
* Passes each byte in <i>str</i> to the given block, or returns an
@ -9601,7 +9601,7 @@ sym_casecmp(VALUE sym, VALUE other)
/*
* call-seq:
* sym =~ obj -> fixnum or nil
* sym =~ obj -> integer or nil
*
* Returns <code>sym.to_s =~ obj</code>.
*/

View File

@ -1044,7 +1044,7 @@ rb_struct_equal(VALUE s, VALUE s2)
/*
* call-seq:
* struct.hash -> fixnum
* struct.hash -> integer
*
* Returns a hash value based on this struct's contents (see Object#hash).
*
@ -1110,8 +1110,8 @@ rb_struct_eql(VALUE s, VALUE s2)
/*
* call-seq:
* struct.length -> fixnum
* struct.size -> fixnum
* struct.length -> integer
* struct.size -> integer
*
* Returns the number of struct members.
*

28
time.c
View File

@ -3291,7 +3291,7 @@ time_utc_p(VALUE time)
/*
* call-seq:
* time.hash -> fixnum
* time.hash -> integer
*
* Returns a hash code for this Time object.
*
@ -3767,7 +3767,7 @@ time_round(int argc, VALUE *argv, VALUE time)
/*
* call-seq:
* time.sec -> fixnum
* time.sec -> integer
*
* Returns the second of the minute (0..60) for _time_.
*
@ -3791,7 +3791,7 @@ time_sec(VALUE time)
/*
* call-seq:
* time.min -> fixnum
* time.min -> integer
*
* Returns the minute of the hour (0..59) for _time_.
*
@ -3811,7 +3811,7 @@ time_min(VALUE time)
/*
* call-seq:
* time.hour -> fixnum
* time.hour -> integer
*
* Returns the hour of the day (0..23) for _time_.
*
@ -3831,8 +3831,8 @@ time_hour(VALUE time)
/*
* call-seq:
* time.day -> fixnum
* time.mday -> fixnum
* time.day -> integer
* time.mday -> integer
*
* Returns the day of the month (1..n) for _time_.
*
@ -3853,8 +3853,8 @@ time_mday(VALUE time)
/*
* call-seq:
* time.mon -> fixnum
* time.month -> fixnum
* time.mon -> integer
* time.month -> integer
*
* Returns the month of the year (1..12) for _time_.
*
@ -3875,7 +3875,7 @@ time_mon(VALUE time)
/*
* call-seq:
* time.year -> fixnum
* time.year -> integer
*
* Returns the year for _time_ (including the century).
*
@ -3895,7 +3895,7 @@ time_year(VALUE time)
/*
* call-seq:
* time.wday -> fixnum
* time.wday -> integer
*
* Returns an integer representing the day of the week, 0..6, with
* Sunday == 0.
@ -4042,7 +4042,7 @@ time_saturday(VALUE time)
/*
* call-seq:
* time.yday -> fixnum
* time.yday -> integer
*
* Returns an integer representing the day of the year, 1..366.
*
@ -4140,9 +4140,9 @@ time_zone(VALUE time)
/*
* call-seq:
* time.gmt_offset -> fixnum
* time.gmtoff -> fixnum
* time.utc_offset -> fixnum
* time.gmt_offset -> integer
* time.gmtoff -> integer
* time.utc_offset -> integer
*
* Returns the offset in seconds between the timezone of _time_
* and UTC.