Bug #4664 ยป ruby_doc_updates-20110510_vbatts.patch
ext/socket/lib/socket.rb | ||
---|---|---|
end
|
||
end
|
||
# creates a new +Socket+ connected to the address of local_addrinfo.
|
||
#
|
||
# If no arguments are given, the address of the socket is not bound.
|
||
#
|
||
# If +block+ is given, calls the +socket+ for each member of the block.
|
||
#
|
||
def connect_internal(local_addrinfo)
|
||
sock = Socket.new(self.pfamily, self.socktype, self.protocol)
|
||
begin
|
lib/mkmf.rb | ||
---|---|---|
end
|
||
end
|
||
# Returns whether or not the static type +type+ is defined.
|
||
#
|
||
# See also +have_type+
|
||
#
|
||
def try_type(type, headers = nil, opt = "", &b)
|
||
if try_compile(<<"SRC", opt, &b)
|
||
#{cpp_include(headers)}
|
||
... | ... | |
end
|
||
end
|
||
# Returns whether or not the Constant +const+ is defined.
|
||
#
|
||
# See also +have_const+
|
||
#
|
||
def try_const(const, headers = nil, opt = "", &b)
|
||
const, type = *const
|
||
if try_compile(<<"SRC", opt, &b)
|
||
... | ... | |
end
|
||
# :startdoc:
|
||
# creates a stub Makefile.
|
||
#
|
||
def dummy_makefile(srcdir)
|
||
configuration(srcdir) << <<RULES << CLEANINGS
|
||
CLEANFILES = #{$cleanfiles.join(' ')}
|
||
... | ... | |
RULES
|
||
end
|
||
# Processes the data contents of the "depend" file.
|
||
# Each line of this file is expected to be a file name.
|
||
#
|
||
# Returns the output of findings, in Makefile format.
|
||
#
|
||
def depend_rules(depend)
|
||
suffixes = []
|
||
depout = []
|
lib/rexml/quickpath.rb | ||
---|---|---|
include Functions
|
||
include XMLTokens
|
||
# A base +Hash+ object to be used when initializing a
|
||
# default empty namespaces set.
|
||
EMPTY_HASH = {}
|
||
def QuickPath::first element, path, namespaces=EMPTY_HASH
|
lib/rexml/xpath.rb | ||
---|---|---|
# Wrapper class. Use this class to access the XPath functions.
|
||
class XPath
|
||
include Functions
|
||
# A base +Hash+ object, supposing to be used when initializing a
|
||
# default empty namespaces set, but is currently unused.
|
||
# TODO: either set the namespaces=EMPTY_HASH, or deprecate this.
|
||
EMPTY_HASH = {}
|
||
# Finds and returns the first node that matches the supplied xpath.
|
lib/rexml/xpath_parser.rb | ||
---|---|---|
require 'rexml/parsers/xpathparser'
|
||
class Object
|
||
# provides a unified +clone+ operation, for +REXML::XPathParser+
|
||
# to use across multiple +Object+ types
|
||
def dclone
|
||
clone
|
||
end
|
||
end
|
||
class Symbol
|
||
# provides a unified +clone+ operation, for +REXML::XPathParser+
|
||
# to use across multiple +Object+ types
|
||
def dclone ; self ; end
|
||
end
|
||
class Fixnum
|
||
# provides a unified +clone+ operation, for +REXML::XPathParser+
|
||
# to use across multiple +Object+ types
|
||
def dclone ; self ; end
|
||
end
|
||
class Float
|
||
# provides a unified +clone+ operation, for +REXML::XPathParser+
|
||
# to use across multiple +Object+ types
|
||
def dclone ; self ; end
|
||
end
|
||
class Array
|
||
# provides a unified +clone+ operation, for +REXML::XPathParser+
|
||
# to use across multiple +Object+ types
|
||
def dclone
|
||
klone = self.clone
|
||
klone.clear
|
object.c | ||
---|---|---|
return Qfalse;
|
||
}
|
||
/*
|
||
* Generates a <code>Fixnum</code> hash value for this object. This function must have the
|
||
* property that a.eql?(b) implies a.hash <code>==</code> b.hash. The hash value is used by
|
||
* class <code>Hash</code>. Any hash value that exceeds the capacity of a <code>Fixnum</code> will be
|
||
* truncated before being used.
|
||
*
|
||
* "waffle" #=> "waffle"
|
||
* "waffle".hash #=> -910576647
|
||
*/
|
||
VALUE
|
||
rb_obj_hash(VALUE obj)
|
||
{
|
||
... | ... | |
return RTEST(recur) ? rb_const_defined(mod, id) : rb_const_defined_at(mod, id);
|
||
}
|
||
VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj);
|
||
VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj);
|
||
VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj);
|
||
VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj);
|
||
VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
|
||
VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
|
||
VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
|
||
VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj); /* in class.c */
|
||
/*
|
||
* call-seq:
|