==

obj == other â true or falseobj.equal?(other) â true or falseobj.eql?(other) â true or false Instance Public methods Equality â At the Object level, == returns true only if obj and other are the same object. Typically, this method is overridden in descendant classes to provide class-specific meaning. Unlike ==, the equal? method should never be overridden by subclasses as it is used to determine object identity (that is, a.equal?(b) if and only if a is the same object

<=>

module other_module â -1, 0, +1, or nil Instance Public methods ComparisonâReturns -1, 0, +1 or nil depending on whether module includes other_module, they are the same, or if module is included by other_module. This is the basis for the tests in Comparable. Returns nil if module has no relationship with other_module, if other_module is not a module, or if the two values are incomparable.

<=

mod Instance Public methods Returns true if mod is a subclass of other or is the same as other. Returns nil if there's no relationship between the two. (Think of the relationship in terms of the class definition: âclass A<Bâ implies âA<Bâ).

&lt;

mod Instance Public methods Returns true if mod is a subclass of other. Returns nil if there's no relationship between the two. (Think of the relationship in terms of the class definition: âclass A<Bâ implies âA<Bâ).

new

Module.new â modModule.new {|mod| block } â mod Class Public methods Creates a new anonymous module. If a block is given, it is passed the module object, and the block is evaluated in the context of this module using module_eval. fred = Module.new do def meth1 "hello" end def meth2 "bye" end end a = "my string" a.extend(fred) #=> "my string" a.meth1 #=> "hello" a.meth2 #=> "bye" Assign the module to a constant (name

nesting

Module.nesting â array Class Public methods Returns the list of Modules nested at the point of call. module M1 module M2 $a = Module.nesting end end $a #=> [M1::M2, M1] $a[0].name #=> "M1::M2"

constants

Module.constants â arrayModule.constants(inherited) â array Class Public methods In the first form, returns an array of the names of all constants accessible from the point of call. This list includes the names of all modules and classes defined in the global scope. Module.constants.first(4) # => [:ARGF, :ARGV, :ArgumentError, :Array] Module.constants.include?(:SEEK_SET) # => false class IO Module.constants.include?(:SEEK_SET) # => true end The second form c

statusText

statusText() Instance Public methods BSTR statusText Get HTTP status text

status

status() Instance Public methods I4 status Get HTTP status code

setRequestHeader

setRequestHeader(arg0, arg1) Instance Public methods VOID setRequestHeader Add HTTP request header BSTR arg0 --- bstrHeader [IN] BSTR arg1 --- bstrValue [IN]