ruby_doc_updates-20110510_vbatts.patch

Vincent Batts, 05/11/2011 01:04 AM

Download (5.04 KB)

View differences:

ext/socket/lib/socket.rb
29 29
    end
30 30
  end
31 31

  
32
  # creates a new +Socket+ connected to the address of local_addrinfo.
33
  #
34
  # If no arguments are given, the address of the socket is not bound.
35
  #
36
  # If +block+ is given, calls the +socket+ for each member of the block.
37
  #
32 38
  def connect_internal(local_addrinfo)
33 39
    sock = Socket.new(self.pfamily, self.socktype, self.protocol)
34 40
    begin
lib/mkmf.rb
1013 1013
  end
1014 1014
end
1015 1015

  
1016
# Returns whether or not the static type +type+ is defined.
1017
#
1018
# See also +have_type+
1019
#
1016 1020
def try_type(type, headers = nil, opt = "", &b)
1017 1021
  if try_compile(<<"SRC", opt, &b)
1018 1022
#{cpp_include(headers)}
......
1066 1070
  end
1067 1071
end
1068 1072

  
1073
# Returns whether or not the Constant +const+ is defined.
1074
#
1075
# See also +have_const+
1076
#
1069 1077
def try_const(const, headers = nil, opt = "", &b)
1070 1078
  const, type = *const
1071 1079
  if try_compile(<<"SRC", opt, &b)
......
1730 1738
end
1731 1739
# :startdoc:
1732 1740

  
1741
# creates a stub Makefile.
1742
#
1733 1743
def dummy_makefile(srcdir)
1734 1744
  configuration(srcdir) << <<RULES << CLEANINGS
1735 1745
CLEANFILES = #{$cleanfiles.join(' ')}
......
1742 1752
RULES
1743 1753
end
1744 1754

  
1755
# Processes the data contents of the "depend" file.
1756
# Each line of this file is expected to be a file name.
1757
# 
1758
# Returns the output of findings, in Makefile format.
1759
#
1745 1760
def depend_rules(depend)
1746 1761
  suffixes = []
1747 1762
  depout = []
lib/rexml/quickpath.rb
6 6
    include Functions
7 7
    include XMLTokens
8 8

  
9
    # A base +Hash+ object to be used when initializing a
10
    # default empty namespaces set.
9 11
    EMPTY_HASH = {}
10 12

  
11 13
    def QuickPath::first element, path, namespaces=EMPTY_HASH
lib/rexml/xpath.rb
5 5
  # Wrapper class.  Use this class to access the XPath functions.
6 6
  class XPath
7 7
    include Functions
8
    # A base +Hash+ object, supposing to be used when initializing a
9
    # default empty namespaces set, but is currently unused.
10
    # TODO: either set the namespaces=EMPTY_HASH, or deprecate this.
8 11
    EMPTY_HASH = {}
9 12

  
10 13
    # Finds and returns the first node that matches the supplied xpath.
lib/rexml/xpath_parser.rb
5 5
require 'rexml/parsers/xpathparser'
6 6

  
7 7
class Object
8
  # provides a unified +clone+ operation, for +REXML::XPathParser+
9
  # to use across multiple +Object+ types
8 10
  def dclone
9 11
    clone
10 12
  end
11 13
end
12 14
class Symbol
15
  # provides a unified +clone+ operation, for +REXML::XPathParser+
16
  # to use across multiple +Object+ types
13 17
  def dclone ; self ; end
14 18
end
15 19
class Fixnum
20
  # provides a unified +clone+ operation, for +REXML::XPathParser+
21
  # to use across multiple +Object+ types
16 22
  def dclone ; self ; end
17 23
end
18 24
class Float
25
  # provides a unified +clone+ operation, for +REXML::XPathParser+
26
  # to use across multiple +Object+ types
19 27
  def dclone ; self ; end
20 28
end
21 29
class Array
30
  # provides a unified +clone+ operation, for +REXML::XPathParser+
31
  # to use across multiple +Object+ types
22 32
  def dclone
23 33
    klone = self.clone
24 34
    klone.clear
object.c
97 97
    return Qfalse;
98 98
}
99 99

  
100
/* 
101
 * Generates a <code>Fixnum</code> hash value for this object. This function must have the
102
 * property that a.eql?(b) implies a.hash <code>==</code> b.hash. The hash value is used by
103
 * class <code>Hash</code>. Any hash value that exceeds the capacity of a <code>Fixnum</code> will be
104
 * truncated before being used.
105
 *
106
 * 	"waffle"	#=> "waffle"
107
 * 	"waffle".hash	#=> -910576647
108
 */
100 109
VALUE
101 110
rb_obj_hash(VALUE obj)
102 111
{
......
1774 1783
    return RTEST(recur) ? rb_const_defined(mod, id) : rb_const_defined_at(mod, id);
1775 1784
}
1776 1785

  
1777
VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj);
1778
VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj);
1779
VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj);
1780
VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj);
1786
VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
1787
VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
1788
VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
1789
VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
1781 1790

  
1782 1791
/*
1783 1792
 *  call-seq: