1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/option.c: Document synonymous methods, by windwiny [GH-277]

* ext/stringio/stringio.c: ditto
* ext/io/wait/wait.c: ditto
* ext/gdbm/gdbm.c: ditto
* ext/dl/cfunc.c: ditto
* ext/zlib/zlib.c: ditto
* ext/win32ole/win32ole.c: ditto
* ext/dbm/dbm.c: ditto
* ext/json/generator/generator.c: ditto
* ext/date/date_core.c: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-04-16 03:25:50 +00:00
parent bbf0ea6bfb
commit 3a7a773aeb
11 changed files with 44 additions and 13 deletions

View file

@ -1,3 +1,16 @@
Tue Apr 16 12:25:00 2013 Zachary Scott <zachary@zacharyscott.net>
* ext/socket/option.c: Document synonymous methods, by windwiny [GH-277]
* ext/stringio/stringio.c: ditto
* ext/io/wait/wait.c: ditto
* ext/gdbm/gdbm.c: ditto
* ext/dl/cfunc.c: ditto
* ext/zlib/zlib.c: ditto
* ext/win32ole/win32ole.c: ditto
* ext/dbm/dbm.c: ditto
* ext/json/generator/generator.c: ditto
* ext/date/date_core.c: ditto
Tue Apr 16 11:23:00 2013 Zachary Scott <zachary@zacharyscott.net> Tue Apr 16 11:23:00 2013 Zachary Scott <zachary@zacharyscott.net>
* ext/openssl/*: Document synonymous methods, by windwiny [GH-277] * ext/openssl/*: Document synonymous methods, by windwiny [GH-277]

View file

@ -5935,6 +5935,7 @@ d_lite_prev_day(int argc, VALUE *argv, VALUE self)
/* /*
* call-seq: * call-seq:
* d.succ -> date
* d.next -> date * d.next -> date
* *
* Returns a date object denoting the following day. * Returns a date object denoting the following day.

View file

@ -655,6 +655,7 @@ fdbm_store(VALUE obj, VALUE keystr, VALUE valstr)
/* /*
* call-seq: * call-seq:
* dbm.length -> integer * dbm.length -> integer
* dbm.size -> integer
* *
* Returns the number of entries in the database. * Returns the number of entries in the database.
*/ */
@ -832,7 +833,10 @@ fdbm_values(VALUE obj)
/* /*
* call-seq: * call-seq:
* dbm.include?(key) -> boolean
* dbm.has_key?(key) -> boolean * dbm.has_key?(key) -> boolean
* dbm.member?(key) -> boolean
* dbm.key?(key) -> boolean
* *
* Returns true if the database contains the specified key, false otherwise. * Returns true if the database contains the specified key, false otherwise.
*/ */
@ -859,6 +863,7 @@ fdbm_has_key(VALUE obj, VALUE keystr)
/* /*
* call-seq: * call-seq:
* dbm.has_value?(value) -> boolean * dbm.has_value?(value) -> boolean
* dbm.value?(value) -> boolean
* *
* Returns true if the database contains the specified string value, false * Returns true if the database contains the specified string value, false
* otherwise. * otherwise.

View file

@ -285,7 +285,9 @@ rb_dlcfunc_set_ptr(VALUE self, VALUE addr)
} }
/* /*
* call-seq: inspect * call-seq:
* inspect
* to_s
* *
* Returns a string formatted with an easily readable representation of the * Returns a string formatted with an easily readable representation of the
* internal state of the DL::CFunc * internal state of the DL::CFunc

View file

@ -953,7 +953,9 @@ fgdbm_values(VALUE obj)
/* /*
* call-seq: * call-seq:
* gdbm.include?(k) -> true or false
* gdbm.has_key?(k) -> true or false * gdbm.has_key?(k) -> true or false
* gdbm.member?(k) -> true or false
* gdbm.key?(k) -> true or false * gdbm.key?(k) -> true or false
* *
* Returns true if the given key _k_ exists within the database. * Returns true if the given key _k_ exists within the database.

View file

@ -96,6 +96,8 @@ io_ready_p(VALUE io)
* call-seq: * call-seq:
* io.wait -> IO, true, false or nil * io.wait -> IO, true, false or nil
* io.wait(timeout) -> IO, true, false or nil * io.wait(timeout) -> IO, true, false or nil
* io.wait_readable -> IO, true, false or nil
* io.wait_readable(timeout) -> IO, true, false or nil
* *
* Waits until input is available or times out and returns self or nil when * Waits until input is available or times out and returns self or nil when
* EOF is reached. * EOF is reached.

View file

@ -1178,11 +1178,11 @@ static VALUE cState_array_nl_set(VALUE self, VALUE array_nl)
/* /*
* call-seq: check_circular? * call-seq: check_circular?
* *
* Returns true, if circular data structures should be checked, * Returns true, if circular data structures should be checked,
* otherwise returns false. * otherwise returns false.
*/ */
static VALUE cState_check_circular_p(VALUE self) static VALUE cState_check_circular_p(VALUE self)
{ {
GET_STATE(self); GET_STATE(self);

View file

@ -127,6 +127,7 @@ sockopt_optname_m(VALUE self)
/* /*
* call-seq: * call-seq:
* sockopt.data => string * sockopt.data => string
* sockopt.to_s => string
* *
* returns the socket option data as a string. * returns the socket option data as a string.
* *

View file

@ -1331,6 +1331,8 @@ strio_read(int argc, VALUE *argv, VALUE self)
/* /*
* call-seq: * call-seq:
* strio.sysread(integer[, outbuf]) -> string * strio.sysread(integer[, outbuf]) -> string
* strio.readpartial(integer[, outbuf]) -> string
* strio.read_nonblock(integer[, outbuf]) -> string
* *
* Similar to #read, but raises +EOFError+ at end of string instead of * Similar to #read, but raises +EOFError+ at end of string instead of
* returning +nil+, as well as IO#sysread does. * returning +nil+, as well as IO#sysread does.
@ -1363,6 +1365,7 @@ strio_sysread(int argc, VALUE *argv, VALUE self)
/* /*
* call-seq: * call-seq:
* strio.length -> integer
* strio.size -> integer * strio.size -> integer
* *
* Returns the size of the buffer string. * Returns the size of the buffer string.

View file

@ -5752,7 +5752,7 @@ ole_type_visible(ITypeInfo *pTypeInfo)
/* /*
* call-seq: * call-seq:
* WIN32OLE_TYPE#visible #=> true or false * WIN32OLE_TYPE#visible? #=> true or false
* *
* Returns true if the OLE class is public. * Returns true if the OLE class is public.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application') * tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')

View file

@ -1293,12 +1293,8 @@ rb_zstream_finish(VALUE obj)
/* /*
* call-seq: * call-seq:
* flush_next_out -> String * flush_next_in -> input
* flush_next_out { |chunk| ... } -> nil
* *
* Flushes output buffer and returns all data in that buffer. If a block is
* given each chunk is yielded to the block until the current output buffer
* has been flushed.
*/ */
static VALUE static VALUE
rb_zstream_flush_next_in(VALUE obj) rb_zstream_flush_next_in(VALUE obj)
@ -1313,7 +1309,13 @@ rb_zstream_flush_next_in(VALUE obj)
} }
/* /*
* Flushes output buffer and returns all data in that buffer. * call-seq:
* flush_next_out -> String
* flush_next_out { |chunk| ... } -> nil
*
* Flushes output buffer and returns all data in that buffer. If a block is
* given each chunk is yielded to the block until the current output buffer
* has been flushed.
*/ */
static VALUE static VALUE
rb_zstream_flush_next_out(VALUE obj) rb_zstream_flush_next_out(VALUE obj)