(in C:/projects/IronRuby/trunk) Array#<< - pushes the object onto the end of the array - returns self to allow chaining - correctly resizes the Array Array - includes Enumerable Array#assoc - returns the first array whose 1st item is == obj or nil - calls == on first element of each array - ignores any non-Array elements Array#at - returns the element at index - calls to_int on its argument Array#clear - removes all elements - returns self - leaves the Array empty Array#collect - returns a copy of array with each element replaced by the value returned by block - does not return subclass instance Array#collect! - replaces each element with the value returned by block Array#compact - returns a copy of array with all nil elements removed - returns subclass instance for Array subclasses Array#compact! - removes all nil elements - returns nil if there are no nil elements to remove Array#<=> - returns 0 if the arrays are equal - returns -1 if the array is shorter than the other array - returns +1 if the array is longer than the other array - calls to_ary on its argument - does not call to_ary on array subclasses Array#concat - appends the elements in the other array - does not loop endlessly when argument is self - calls to_ary on its argument - does not call to_ary on array subclasses Array#delete_at - removes the element at the specified index - returns the removed element at the specified index - returns nil if the index is out of range - calls to_int on its argument - accepts negative indices Array#delete_if - removes each element for which block returns true Array#delete - returns object or nil if no elements match object - may be given a block that is executed if no element matches object Array#dup - returns an Array or a subclass instance - produces a shallow copy where the references are directly copied Array#each_index - it passes the index of each element to the block Array#each - yields each element to the block - should support array explosion Array.[] - returns a new array populated with the given elements Array[] - is a synonym for .[] Array#[] - returns the element at index with [index] - returns the element at index from the end of the array with [-index] - return count elements starting from index with [index, count] - returns count elements starting at index from the end of array with [-index, count] - returns the first count elements with [0, count] - calls to_int on index and count arguments with [index, count] - returns the elements specified by Range indexes with [m..n] - returns elements specified by Range indexes except the element at index n with [m...n] - returns elements that exist if range start is in the array but range end is not with [m..n] - accepts Range instances having a negative m and both signs for n with [m..n] and [m...n] - calls to_int on Range arguments with [m..n] and [m...n] - returns the same elements as [m..n] and [m...n] with Range subclasses - returns nil for a requested index not in the array with [index] - returns [] if the index is valid but length is zero with [index, length] - returns nil if length is zero but index is invalid with [index, length] - returns [] if index == array.size with [index, length] - returns nil if index > array.size with [index, length] - returns nil if length is negative with [index, length] - returns nil if no requested index is in the array with [m..n] - returns nil if range start is not in the array with [m..n] - returns an empty array when m == n with [m...n] - returns an empty array with [0...0] - returns a subarray where m, n negatives and m < n with [m..n] - returns an array containing the first element with [0..0] - returns the entire array with [0..-1] - returns all but the last element with [0...-1] - returns [3] for [2..-1] out of [1, 2, 3] - returns an empty array when m > n and m, n are positive with [m..n] - returns an empty array when m > n and m, n are negative with [m..n] - does not expand array when the indices are outside of the array bounds - returns a subclass instance when called on a subclass of Array Array#[]= - sets the value of the element at index - removes the section defined by start, length when set to nil - sets the section defined by start, length to other - removes the section defined by range when set to nil - sets the section defined by range to other - calls to_int on its start and length arguments - should set elements in the range arguments when passed ranges - calls to_int on range arguments - raises IndexError when passed indexes out of bounds - does not call to_ary on rhs array subclasses for multi-element sets Array#[]= with [index] - returns value assigned if idx is inside array - returns value assigned if idx is right beyond right array boundary - returns value assigned if idx far beyond right array boundary - sets the value of the element at index - sets the value of the element if it is right beyond the array boundary Array#[]= with [index, count] - returns non-array value if non-array value assigned - returns array if array assigned - removes the section defined by start, length when set to nil - removes the section when set to nil if negative index within bounds and cnt > 0 - replaces the section defined by start, length to other - replaces the section to other if idx < 0 and cnt > 0 - replaces the section to other even if cnt spanning beyond the array boundary - pads the Array with nils if the span is past the end - inserts other section in place defined by idx - raises IndexError when passed start and negative length - sets elements when passed start, length Array#[]= with [m..n] - returns non-array value if non-array value assigned - returns array if array assigned - removes the section defined by range when set to nil - removes the section when set to nil if m and n < 0 - replaces the section defined by range - replaces the section if m and n < 0 - replaces the section if m < 0 and n > 0 - inserts the other section at m if m > n - accepts Range subclasses Array#[] after a shift - works for insertion Array#empty? - returns true if the array has no elements Array#eql? - returns true if other is the same array - returns true if other has the same length and elements - ignores array class differences Array#== - returns true if each element is == to the corresponding element in the other array - returns false if any element is not == to the corresponding element in the other the array - returns false immediately when sizes of the arrays differ - does not call to_ary on array subclasses - ignores array class differences Array#fetch - returns the element at index - counts negative indices backwards from end - raises IndexError if there is no element at index - returns default if there is no element at index if passed a default value - returns the value of block if there is no element at index if passed a block - gives precedence to the default block over the default argument - calls to_int on its argument Array#fill - replaces all elements in the array with object - replaces length elements with object beginning with start index - calls to_int on start and length - starts at 0 if the negative index is before the start of the array - does not change the Array with an index and a count of < 1 - replaces elements in range with object - replaces all elements with the value of block (index given to block) - replaces length elements beginning with start with the value of block - replaces all elements in range with the value of block - increases the Array size when necessary - raises TypeError with range and length argument - ignores length if it is nil Array#first - returns the first element - returns nil if self is empty - returns the first count elements - returns an empty array when passed count on an empty array - returns an empty array when passed count == 0 - returns an array containing the first element when passed count == 1 - raises ArgumentError when count is negative - returns the entire array when count > length - calls to_int on count Array#flatten - returns a one-dimensional flattening recursively - raises ArgumentError on recursive arrays Array#flatten! - modifies array to produce a one-dimensional flattening recursively - returns nil if no modifications took place - raises ArgumentError on recursive arrays Array#hash - returns the same fixnum for arrays with the same content - ignores array class differences - returns same hash code for arrays with the same content - returns the same value if arrays are #eql? Array#include? - returns true if object is present, false otherwise - determines presence by using element == obj - calls == on elements from left to right until success Array#indexes - returns elements at integer argument indexes (DEPRECATED) - calls to_int on arguments - returns elements in range arguments as nested arrays (DEPRECATED) Array#index - returns the index of the first element == to object - returns 0 if first element == to object - returns size-1 if only last element == to object - returns nil if no element == to object Array#indices - returns elements at integer argument indexes (DEPRECATED) - calls to_int on arguments - returns elements in range arguments as nested arrays (DEPRECATED) Array#initialize - does nothing when passed an object equal to self - does nothing when passed self - sets the array to size objects when passed size, object - raises ArgumentError if size is negative - calls to_int on array size - does not raise TypeError on a frozen array if it would not change the array Array#insert - inserts objects before the element at index for non-negative index - appends objects to the end of the array for index == -1 - inserts objects after the element at index with negative index - pads with nils if the index to be inserted to is past the end - can insert before the first element with a negative index - raises IndexError if the negative index is out of bounds - does nothing of no object is passed Array#inspect - returns a string equivalent to evaluated source code representation - calls inspect on its arguments - handles recursive arrays Array#& - creates an array with elements common to both arrays (intersection) - creates an array with no duplicates - creates an array with elements in order they are first encountered - does not modify the original Array - calls to_ary on its argument - acts as if using eql? - does return subclass instances for Array subclasses - does not call to_ary on array subclasses Array#join - returns a string formed by concatenating each element.to_s separated by separator without trailing separator - uses the same separator with nested arrays - uses $, as the default separator (which defaults to empty) Array#last - returns the last element - returns nil if self is empty - returns the last count elements - returns an empty array when passed a count on an empty array - returns an empty array when count == 0 - raises ArgumentError when count is negative - returns the entire array when count > length - uses to_int to convert its argument Array#length - returns the number of elements Array#map - returns a copy of array with each element replaced by the value returned by block - does not return subclass instance Array#map! - replaces each element with the value returned by block Array#- - creates an array minus any items from other array - removes multiple items on the lhs equal to one on the rhs - calls to_ary on its argument - does not return subclass instance for Array subclasses - does not call to_ary on array subclasses Array#* - is equivalent to self.join(str) when passed a string - handles recursive arrays like #join - calls to_str on its argument - concatenates n copies of the array when passed an integer - raises ArgumentError when passed a negative integer - calls to_int on its argument - calls to_str on its argument before to_int - raises TypeError if the argument can neither be converted to a string nor an integer Array.new - returns a new array when not passed arguments - returns a new array of size with nil elements - calls to_int on size - returns a new array of size default objects - does not call to_ary on Array subclasses when passed an array-like argument - returns an array of size elements from the result of passing each index to block - will fail if a to_ary is supplied as the first argument and a second argument is given Array#nitems - returns the number of non-nil elements Array#partition - returns two arrays - returns in the left array values for which the block evaluates to true - does not return subclass instances on Array subclasses Array#+ - concatenates two arrays - calls to_ary on its argument - does return subclass instances with Array subclasses - does not call to_ary on array subclasses Array#pop - removes and returns the last element of the array - returns nil if there are no more elements Array#push - appends the arguments to the array - isn't confused by previous shift Array#rassoc - returns the first contained array whose second element is == object - calls elem == obj on the second element of each contained array - does not check the last element in each contained but speficically the second Array#reject - returns a new array without elements for which block is true Array#replace - replaces the elements with elements from other array - calls to_ary on its argument - does not call to_ary on array subclasses Array#reverse - returns a new array with the elements in reverse order Array#reverse! - reverses the elements in place Array#rindex - returns the first index backwards from the end where element == to object - returns size-1 if last element == to object - returns 0 if only first element == to object - returns nil if no element == to object Array#select - returns a new array of elements for which block is true - does not return subclass instance on Array subclasses Array#shift - removes and returns the first element - returns nil when the array is empty Array#size - returns the number of elements Array#slice! - removes and return the element at index - removes and returns length elements beginning at start - calls to_int on start and length arguments - removes and return elements in range - calls to_int on range arguments - does (not?) expand array with indices out of bounds Array#slice - returns the element at index with [index] - returns the element at index from the end of the array with [-index] - return count elements starting from index with [index, count] - returns count elements starting at index from the end of array with [-index, count] - returns the first count elements with [0, count] - calls to_int on index and count arguments with [index, count] - returns the elements specified by Range indexes with [m..n] - returns elements specified by Range indexes except the element at index n with [m...n] - returns elements that exist if range start is in the array but range end is not with [m..n] - accepts Range instances having a negative m and both signs for n with [m..n] and [m...n] - calls to_int on Range arguments with [m..n] and [m...n] - returns the same elements as [m..n] and [m...n] with Range subclasses - returns nil for a requested index not in the array with [index] - returns [] if the index is valid but length is zero with [index, length] - returns nil if length is zero but index is invalid with [index, length] - returns [] if index == array.size with [index, length] - returns nil if index > array.size with [index, length] - returns nil if length is negative with [index, length] - returns nil if no requested index is in the array with [m..n] - returns nil if range start is not in the array with [m..n] - returns an empty array when m == n with [m...n] - returns an empty array with [0...0] - returns a subarray where m, n negatives and m < n with [m..n] - returns an array containing the first element with [0..0] - returns the entire array with [0..-1] - returns all but the last element with [0...-1] - returns [3] for [2..-1] out of [1, 2, 3] - returns an empty array when m > n and m, n are positive with [m..n] - returns an empty array when m > n and m, n are negative with [m..n] - does not expand array when the indices are outside of the array bounds - returns a subclass instance when called on a subclass of Array Array#sort - may take a block which is used to determine the order of objects a and b described as -1, 0 or +1 - returns subclass instance on Array subclasses Array#sort! - sorts array in place using <=> - sorts array in place using block value Array#to_ary - returns self Array#to_a - returns self Array#to_s - is equivalent to #join without a separator string Array#transpose - assumes an array of arrays and returns the result of transposing rows and columns - raises if the items aren't arrays and don't respond to to_ary - does not call to_ary on array subclass elements - raises IndexError if the arrays are not of the same length - does not return subclass instance on Array subclasses Array#| - returns an array of elements that appear in either array (union) - creates an array with no duplicates - creates an array with elements in order they are first encountered - calls to_ary on its argument - acts as if using eql? - does not return subclass instances for Array subclasses - does not call to_ary on array subclasses Array#uniq - returns an array with no duplicates - uses eql? semantics - compares elements first with hash - does not compare elements with different hash codes via eql? - compares elements with matching hash codes with #eql? - returns subclass instance on Array subclasses Array#uniq! - modifies the array in place - returns self - returns nil if no changes are made to the array Array#unshift - prepends object to the original array Array#values_at - returns an array of elements at the indexes when passed indexes - calls to_int on its indices - calls to_int on arguments of ranges when passes ranges - does not return subclass instance on Array subclasses Array#zip - returns an array of arrays containing corresponding elements of each array - fills in missing values with nil - calls block if supplied - does not return subclass instance on Array subclasses Bignum#abs - returns the absolute value Bignum#& - tries to convert it's argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Bignum#| - returns self bitwise OR other - tries to convert the given argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Bignum#^ - returns self bitwise EXCLUSIVE OR other - tries to convert the given argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Bignum#coerce when given a Fixnum or Bignum - returns an Array containing the given argument and self Bignum#coerce - raises a TypeError when given a non Fixnum/Bignum Bignum#<=> - returns -1 when self is less than the given argument - returns 0 when self is equal to the given argument - returns 1 when self is greater than the given argument - returns nil when the given argument is no Integer Bignum#~ - returns self with each bit flipped Bignum#/ - returns self divided by other - raises ZeroDivisionError if other is zero and not a Float - does NOT raise ZeroDivisionError if other is zero and is a Float - raises a TypeError when given a non-Integer Bignum#divmod - returns an Array containing quotient and modulus obtained from dividing self by the given argument - raises a ZeroDivisionError when the given argument is 0 - raises a FloatDomainError when the given argument is 0 and a Float - raises a TypeError when given a non-Integer Bignum#div - raises ZeroDivisionError if other is zero and not a Float - raises a TypeError when given a non-Integer Bignum#[] - returns the nth bit in the binary representation of self - tries to convert the given argument to an Integer using #to_int - raises a TypeError when the given argument can't be converted to Integer Bignum#eql? when given a Bignum - returns true if the given argument has the same value Bignum#eql? when given a non-Bignum - returns false if the given argument is no Bignum Bignum#== - should return true if self has the same value as the given argument - calls 'other == self' if the given argument is no Integer Bignum#** - raises a TypeError when given a non-Integer Bignum#>= - returns true if self is greater than or equal to other - raises an ArgumentError when given a non-Integer Bignum#> - returns true if self is greater than the given argument - raises an ArgumentError when given a non-Integer Bignum#hash - is provided Bignum#<< - performs a right-shift if given a negative value - raises a TypeError when the given argument can't be converted to Integer Bignum#<= - returns true if self is less than or equal to other - raises an ArgumentError when given a non-Integer Bignum#< - returns true if self is less than the given argument - raises an ArgumentError when given a non-Integer Bignum#- - returns self minus the given Integer - raises a TypeError when given a non-Integer Bignum#% - returns the modulus obtained from dividing self by the given argument - raises a ZeroDivisionError when the given argument is 0 - does not raise a FloatDomainError when the given argument is 0 and a Float - raises a TypeError when given a non-Integer Bignum#modulo - returns the modulus obtained from dividing self by the given argument - raises a ZeroDivisionError when the given argument is 0 - does not raise a FloatDomainError when the given argument is 0 and a Float - raises a TypeError when given a non-Integer Bignum#* - returns self multiplied by the given Integer - raises a TypeError when given a non-Integer Bignum#+ - raises a TypeError when given a non-Integer Bignum#quo - returns the result of self divided by the given Integer as a Float - does not raise a ZeroDivisionError when the given Integer is 0 - does not raise a FloatDomainError when the given Integer is 0 and a Float - raises a TypeError when given a non-Integer Bignum#remainder - returns the remainder of dividing self by other - raises ZeroDivisionError if other is zero and not a Float - does NOT raise ZeroDivisionError if other is zero and is a Float Bignum#>> - returns self shifted the given amount of bits to the right - performs a left-shift if given a negative value - tries to convert it's argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Bignum#size - returns the number of bytes in the machine representation of self Bignum#to_f - returns self converted to a Float Bignum#to_s when given a base - raises an ArgumentError if the base is less than 2 or higher than 36 Bignum#to_s when no base given - returns self converted to a String using base 10 Bignum#-@ - returns self as a negative value Comparable#between? - returns true if self is greater than or equal to the first and less than or equal to the second argument Comparable#== - returns true if other is the same as self - returns false if calling #<=> on self returns a non-zero Integer - returns nil if calling #<=> on self returns nil or a non-Integer Comparable#>= - calls #<=> on self with other and returns true if #<=> returns 0 or any Integer greater than 0 - returns false if calling #<=> on self returns any Integer less than 0 - raises an ArgumentError if calling #<=> on self returns nil Comparable#> - calls #<=> on self with other and returns true if #<=> returns any Integer greater than 0 - returns false if calling #<=> on self returns 0 or any Integer less than 0 - raises an ArgumentError if calling #<=> on self returns nil Comparable#<= - calls #<=> on self with other and returns true if #<=> returns 0 or any Integer less than 0 - returns false if calling #<=> on self returns any Integer greater than 0 - raises an ArgumentError if calling #<=> on self returns nil Comparable#< - calls #<=> on self with other and returns true if #<=> returns any Integer less than 0 - returns false if calling #<=> on self returns 0 or any Integer greater than 0 - raises an ArgumentError if calling #<=> on self returns nil Dir.chdir - changes to the specified directory - returns 0 when successfully changing directory - returns the value of the block when a block is given - changes to the specified directory for the duration of the block - always returns to the original directory when given a block Dir#close - raises an IOError when called on a closed Dir instance Dir.delete - removes empty directories - raises SystemCallError when trying to remove a nonempty directory Dir - includes Enumerable Dir#each - raises an IOError when called on a closed Dir instance Dir.[] - matches dotfiles with '.*' - matches files with any ending with '*' - matches files with any middle with '*' - matches a single character except leading '.' with '?' - accepts multiple '?' characters in a pattern Dir.foreach - returns nil when successful Dir.glob - matches dotfiles with '.*' - matches files with any ending with '*' - matches files with any middle with '*' - matches a single character except leading '.' with '?' - accepts multiple '?' characters in a pattern Dir.open - returns a Dir instance representing the specified directory Dir#path - returns the path that was supplied to .new or .open Dir#path - raises an IOError when called on a closed Dir instance Dir#pos - raises an IOError when called on a closed Dir instance Dir#read - raises an IOError when called on a closed Dir instance Dir#rewind - returns the Dir instance Dir#rewind - raises an IOError when called on a closed Dir instance Dir.rmdir - removes empty directories - raises SystemCallError when trying to remove a nonempty directory Dir#seek - moves the current read position - returns the Dir instance Dir#tell - seeks to a certain position and returns a location number Dir#tell - raises an IOError when called on a closed Dir instance Dir.unlink - removes empty directories - raises SystemCallError when trying to remove a nonempty directory Enumerable#all? - fails when have a wrong argument - with no block returns true if no elements are false or nil - returns true if the block never returns false or nil - returns false if the block ever returns false or nil Enumerable#any? - any? with no block should return true if any element is not false or nil - any? should return true if the block ever returns other than false or nil - any? should return false if the block never returns other than false or nil Enumerable#collect - collect should return a new array with the results of passing each element to block Enumerable#detect - Passes each entry in enum to block while block when block is false - Returns nil when the block is false and there is no ifnone proc given - Returns the first element for which the block is not false - Returns the value of the ifnone proc if the block is false - Doesn't call the ifnone proc if an element is found - Calls the ifnone proc only once when the block is false Enumerable.each - be provided - provide each element to the block Enumerable#each_with_index - passes each element and its index to block - provides each element to the block and its index Enumerable#entries - returns an array containing the items in enum. - returns an array containing the elements Enumerable#find_all - returns all elements for which the block is not false Enumerable#find - Passes each entry in enum to block while block when block is false - Returns nil when the block is false and there is no ifnone proc given - Returns the first element for which the block is not false - Returns the value of the ifnone proc if the block is false - Doesn't call the ifnone proc if an element is found - Calls the ifnone proc only once when the block is false Enumerable#grep - grep without a block should return an array of all elements === pattern Enumerable#include? - returns true if any element == argument - returns true if any member of enum equals obj when == compare different classes (legacy rubycon) Enumerable#inject - inject with argument takes a block with an accumulator (with argument as initial value) and the current element. Value of block becomes new accumulator - inject without argument takes a block with an accumulator (with first element as initial value) and the current element. Value of block becomes new accumulator Enumerable#map - collect should return a new array with the results of passing each element to block Enumerable#max - max should return the maximum element Enumerable#member? - returns true if any element == argument - returns true if any member of enum equals obj when == compare different classes (legacy rubycon) Enumerable#min - min should return the minimum element Enumerable#partition - returns two arrays, the first containing elements for which the block is true, the second containing the rest - throws LocalJumpError if called without a block Enumerable#reject - returns an array of the elements for which block is false - raises LocalJumpError if no block is given Enumerable#select - returns all elements for which the block is not false Enumerable#sort_by - sort_by should return an array of elements ordered by the result of block - should sort the object by the given attribute Enumerable#sort - should use a sort block if given Enumerable#to_a - returns an array containing the items in enum. - returns an array containing the elements Enumerable#zip - combines each element of the receiver with the element of the same index in arrays given as arguments - passes each element of the result array to a block and return nil if a block is given - fills resulting array with nils if an argument array is too short - converts arguments to arrays using #to_a Exception.exception - creates a new instance of Exception - sets the message of the Exception when passes a message - returns 'Exception' for message when no message given Exception - is a Class - is a superclass of NoMemoryError - is a superclass of ScriptError - is a superclass of StandardError - is a superclass of SystemExit - is a superclass of SystemStackError Exception#inspect - returns '#' when no message given - includes message when given IOError - is a superclass of EOFError Exception#message - returns the exception message NameError - is a superclass of NoMethodError Exception.new - creates a new instance of Exception - sets the message of the Exception when passes a message - returns 'Exception' for message when no message given NoMethodError#message - for an undefined method match /undefined method/ - for an protected method match /protected method/ - for private method match /private method/ RangeError - is a superclass of FloatDomainError StandardError - is a superclass of ArgumentError - is a superclass of IOError - is a superclass of IndexError - is a superclass of LocalJumpError - is a superclass of NameError - is a superclass of RangeError - is a superclass of RegexpError - is a superclass of RuntimeError - is a superclass of SecurityError - is a superclass of SystemCallError - is a superclass of ThreadError - is a superclass of TypeError - is a superclass of ZeroDivisionError SystemCallError.new - requires at least one argumentt FalseClass#& - returns false FalseClass#inspect - returns the string 'false' FalseClass#| - return false if other is nil or false, otherwise true FalseClass#to_s - returns the string 'false' FalseClass#^ - returns false if other is nil or false, otherwise true Fixnum#abs - returns self's absolute value Fixnum#& - tries to convert it's argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Fixnum#| - returns self bitwise OR other - tries to convert the given argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Fixnum#^ - tries to convert the given argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Fixnum#coerce when given a Fixnum - returns an array containing two Fixnums Fixnum#coerce when given a String - raises an ArgumentError when trying to coerce with a non-number String - returns an array containing two Floats Fixnum#coerce - raises a TypeError when trying to coerce with nil - tries to convert the given Object into a Float by using #to_f - raises a TypeError when given an Object that does not respond to #to_f Fixnum#<=> - returns -1 when self is less than the given argument - returns 0 when self is equal to the given argument - returns 1 when self is greater than the given argument - returns nil when the given argument is no Integer Fixnum#~ - returns self with each bit flipped Fixnum#/ - returns self divided by the given argument - raises ZeroDivisionError if the given argument is zero and not a Float - does NOT raise ZeroDivisionError if the given argument is zero and is a Float - coerces fixnum and return self divided by other - raises a TypeError when given a non-Integer Fixnum#divmod - returns an Array containing quotient and modulus obtained from dividing self by the given argument - raises a ZeroDivisionError when the given argument is 0 - raises a TypeError when given a non-Integer Fixnum#div with a Fixnum - returns self divided by the given argument as an Integer Fixnum#div - rounds towards -inf - coerces self and the given argument to Floats and returns self divided by other as Fixnum - raises a FloatDomainError when the given argument is 0 and a Float - raises a ZeroDivisionError when the given argument is 0 - raises a TypeError when given a non-Integer Fixnum#[] - returns the nth bit in the binary representation of self - tries to convert the given argument to an Integer using #to_int - raises a TypeError when the given argument can't be converted to Integer Fixnum#== - should return true if self has the same value as other - calls 'other == self' if the given argument is no Fixnum Fixnum#** - raises a TypeError when given a non-Integer Fixnum#>= - returns true if self is greater than or equal to the given argument - raises an ArgumentError when given a non-Integer Fixnum#> - returns true if self is greater than the given argument - raises an ArgumentError when given a non-Integer Fixnum#id2name - returns the string name of the object whose symbol ID is self - returns nil if there is no symbol in the symbol table with this value Fixnum#<< - returns self shifted the given amount of bits to the left - performs a right-shift if given a negative value - tries to convert its argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Fixnum#<= - returns true if self is less than or equal to other - raises an ArgumentError when given a non-Integer Fixnum#< - returns true if self is less than the given argument - raises an ArgumentError when given a non-Integer Fixnum#- - raises a TypeError when given a non-Integer Fixnum#% - returns the modulus obtained from dividing self by the given argument - raises a ZeroDivisionError when the given argument is 0 - does not raise a FloatDomainError when the given argument is 0 and a Float - raises a TypeError when given a non-Integer Fixnum#modulo - returns the modulus obtained from dividing self by the given argument - raises a ZeroDivisionError when the given argument is 0 - does not raise a FloatDomainError when the given argument is 0 and a Float - raises a TypeError when given a non-Integer Fixnum#* - raises a TypeError when given a non-Integer Fixnum#+ - raises a TypeError when given a non-Integer Fixnum#quo - returns the result of self divided by the given Integer as a Float - does not raise a ZeroDivisionError when the given Integer is 0 - does not raise a FloatDomainError when the given Integer is 0 and a Float - raises a TypeError when given a non-Integer Fixnum#>> - returns self shifted the given amount of bits to the right - performs a left-shift if given a negative value - tries to convert it's argument to an Integer using to_int - raises a TypeError when the given argument can't be converted to Integer Fixnum#size - returns the number of bytes in the machine representation of self Fixnum#to_f - returns self converted to a Float Fixnum#to_sym - returns the symbol whose integer value is self - returns nil if there is no symbol in the symbol table with this value Fixnum#to_s when given a base - returns self converted to a String in the given base - raises an ArgumentError if the base is less than 2 or higher than 36 Fixnum#to_s when no base given - returns self converted to a String using base 10 Fixnum#-@ - returns self as a negative value Fixnum#zero? - returns true if self is 0 Float#abs - returns the absolute value Float#ceil - returns the smallest Integer greater than or equal to self Float#<=> - returns -1, 0, 1 when self is less than, equal, or greater than other Float#CONSTANTS - the DIG value is 15 - the EPSILON value is - the MANT_DIG is 53 - the MAX_10_EXP is 308 - the MIN_10_EXP is -308 - the MAX_EXP is 1024 - the MIN_EXP is -1021 - the MIN_EXP is 1.79769313486232e+308 - the MAX is 1.79769313486232e+308 - the MIN is 2.2250738585072e-308 - the RADIX is 2 Float#/ - returns self divided by other - does NOT raise ZeroDivisionError if other is zero Float#eql? - returns true if other is a Float equal to self Float#== - returns true if self has the same value as other - calls 'other == self' if coercion fails Float#** - returns self raise to the other power Float#finite? - returns true if a valid IEEE floating-point number Float#floor - returns the largest Integer less than or equal to self Float#>= - returns true if self is greater than or equal to other Float#> - returns true if self is greater than other Float#hash - is provided Float.induced_from - returns the argument when passed a Float - returns a Float of the correct value when sent a Fixnum - raises a TypeError if the argument is not a Float, Fixnum, or Bignum Float#infinite? - returns nil, -1, +1 when self is finite, -Infinity, +Infinity Float#<= - returns true if self is less than or equal to other Float#< - returns true if self is less than other Float#% - returns self modulo other - does NOT raise ZeroDivisionError if other is zero Float#modulo - returns self modulo other - does NOT raise ZeroDivisionError if other is zero Float#nan? - returns true if self is not a valid IEEE floating-point number Float#round - returns the nearest Integer Float#to_f - returns self Float#-@ - negates self Float#+@ - returns the same value with same sign (twos complement) Float#zero? - returns true if self is 0.0 Hash#clear - removes all key, value pairs - does not remove default values and procs Hash#default_proc - returns the block passed to Hash.new - returns nil if no block was passed to proc Hash#default - returns the default value - uses the default proc to compute a default value, passing given key - calls default proc with nil arg if passed a default proc but no arg Hash#default= - sets the default value - unsets the default proc Hash#delete_if - yields two arguments: key and value - removes every entry for which block is true and returns self - processes entries with the same order as each() Hash#delete_if - does not raise LocalJumpError when called on an empty hash without a block Hash#delete - calls supplied block if the key is not found - returns nil if the key is not found when no block is given Hash#each_key - calls block once for each key, passing key - processes keys in the same order as keys() Hash#each_key - does not raise LocalJumpError when called on an empty hash without a block Hash#each_pair - processes all pairs, yielding two arguments: key and value Hash#each_pair - does not raise LocalJumpError when called on an empty hash without a block Hash#each - yields one argument: [key, value] - calls block once for each entry, passing key, value - uses the same order as keys() and values() Hash#each - does not raise LocalJumpError when called on an empty hash without a block Hash#each_value - calls block once for each key, passing value - processes values in the same order as values() Hash#each_value - does not raise LocalJumpError when called on an empty hash without a block Hash.[] - creates a Hash; values can be provided as the argument list - creates a Hash; values can be provided as one single hash - raises on odd parameter list count - raises when mixing argument styles - does not call to_hash - returns an instance of the class it's called on Hash#[] - returns the value for key - returns the default (immediate) value for missing keys - does not create copies of the immediate default value - returns the default (dynamic) value for missing keys - does not return default values for keys with nil values - compares keys with eql? semantics - compares key via hash - calls % on hash code from hash() - does not compare key with unknown hash codes via eql? Hash#[]= - associates the key with the value and return the value Hash#empty? - returns true if the hash has no entries Hash#== - returns true if other Hash has the same number of keys and each key-value pair matches - does not call to_hash on hash subclasses - returns false when the numbers of keys differ without comparing any elements - compares keys with eql? semantics - first compares keys via hash - does not compare keys with different hash codes via eql? - compares keys with matching hash codes via eql? - compares values with == semantics - does not compare values when keys don't match - compares values when keys match - ignores hash class differences Hash#fetch - returns the value for key - raises IndexError if key is not found - returns default if key is not found when passed a default - returns value of block if key is not found when passed a block - gives precedence to the default block over the default argument when passed both - raises when the size of its arguments isn't two or one Hash - includes Enumerable Hash#has_key? - returns true if argument is a key - returns true if the key's matching value was nil - returns true if the key's matching value was false Hash#has_value? - returns true if the value exists in the hash - uses == semantics for comparing values Hash#include? - returns true if argument is a key - returns true if the key's matching value was nil - returns true if the key's matching value was false Hash#values_at - returns an array of values for the given keys Hash#indexes - returns an array of values for the given keys Hash#index - returns the corresponding key for value - returns nil if the value is not found - compares values using == Hash#indices - returns an array of values for the given keys Hash#inspect - returns a string representation with same order as each() - calls inspect on keys and values - handles recursive hashes Hash#invert - returns a new hash where keys are values and vice versa - handles collisions by overriding with the key coming later in keys() - compares new keys with eql? semantics - does not return subclass instances for subclasses Hash#keys - returns an array populated with keys - it uses the same order as #values Hash#key? - returns true if argument is a key - returns true if the key's matching value was nil - returns true if the key's matching value was false Hash#length - returns the number of entries Hash#member? - returns true if argument is a key - returns true if the key's matching value was nil - returns true if the key's matching value was false Hash#merge - returns a new hash by combining self with the contents of other - sets any duplicate key to the value of block if passed a block - calls to_hash on its argument - does not call to_hash on hash subclasses - returns subclass instance for subclasses - processes entries with same order as each() Hash#merge! - adds the entries from other, overwriting duplicate keys. Returns self - sets any duplicate key to the value of block if passed a block - calls to_hash on its argument - does not call to_hash on hash subclasses - processes entries with same order as merge() Hash.new - creates a new Hash with default object if pass a default argument - does not create a copy of the default argument - creates a Hash with a default_proc if passed a block - raises ArgumentError if more than one argument is passed - raises ArgumentError if passed both default argument and default block Hash#rehash - reorganizes the hash by recomputing all key hash codes - gives precedence to keys coming later in keys() on collisions Hash#reject - should be equivalent to hsh.dup.delete_if - returns subclass instance for subclasses - processes entries with the same order as reject! Hash#reject - does not raise LocalJumpError when called on an empty hash without a block Hash#reject! - is equivalent to delete_if if changes are made - returns nil if no changes were made - processes entries with the same order as delete_if Hash#reject! - does not raise LocalJumpError when called on an empty hash without a block Hash#replace - replaces the contents of self with other - calls to_hash on its argument - calls to_hash on hash subclasses - does not transfer default values Hash#select - yields two arguments: key and value - returns an array of entries for which block is true - processes entries with the same order as reject Hash#select - does not raise LocalJumpError when called on an empty hash without a block Hash#shift - removes a pair from hash and return it (same order as to_a) - returns (computed) default for empty hashes Hash#size - returns the number of entries Hash#sort - converts self to a nested array of [key, value] arrays and sort with Array#sort - works when some of the keys are themselves arrays - uses block to sort array if passed a block Hash#store - associates the key with the value and return the value Hash#to_a - returns a list of [key, value] pairs with same order as each() Hash#to_hash - returns self Hash#to_s - returns a string by calling Hash#to_a and using Array#join with default separator Hash#update - adds the entries from other, overwriting duplicate keys. Returns self - sets any duplicate key to the value of block if passed a block - calls to_hash on its argument - does not call to_hash on hash subclasses - processes entries with same order as merge() Hash#values_at - returns an array of values for the given keys Hash#values - returns an array of values Hash#value? - returns true if the value exists in the hash - uses == semantics for comparing values Integer#ceil - returns self Integer#chr - returns a string containing the ASCII character represented by self - returns a new string Integer#downto - passes block decreasing values from self down to and including other Integer Integer#floor - returns self Integer#integer? - returns true Integer#round - returns self Integer#times - passes block values from 0 to self - 1 Integer#to_int - returns self Integer#to_i - returns self Integer#truncate - returns self Integer#upto - passes block values from self up to and including other Integer IO#binmode - should enter binmode if no IO has been performed yet - should not enter binmode if IO has been performed already File#closed? - should reflect whether the IO object is closed or not IO#close - should close a stream that has been opened - should throw an exception of closing a stream that has been closed already IO::SEEK_SET - is defined IO::SEEK_CUR - is defined IO::SEEK_END - is defined IO#each_line - yields the next line of string that is separated by $/ - yields the entire content if the separator is nil - yields the next paragraph if the separator's length is 0 - does not change $_ IO#each - yields the next line of string that is separated by $/ - yields the entire content if the separator is nil - yields the next paragraph if the separator's length is 0 - does not change $_ IO#fileno - return the numeric file descriptor of the given IO object IO::foreach - yields a sequence of Strings that were separated by $/ - yields a sequence of Strings that were separated by r IO#gets - returns the next line of string that were separated by $/ - returns nil if called at the end of the stream - returns the entire content if the separator is nil - returns the next paragraph if the separator's length is 0 - reads until the beginning of the next paragraph when the separator's length is 0 - raises IOError if the stream is not opened for reading IO.new - raises TypeError if given invalid arguments IO#putc - calls to_int on objects - fails if parameter is not a string and not convertable to an integer - prints the first character of a string IO#puts - writes just a newline when given no args - writes nil with a newline when given nil as an arg - calls to_s before writing non-string objects - writes each arg if given several - flattens a nested array before writing it - writes [...] for a recursive array arg - writes a newline after objects that do not end in newlines - does not write a newline after objects that end in newlines - ignores the $/ separator global IO#readlines - returns an Array of Strings that were separated by $/ - returns an Array of Strings that were separated by r IO::readlines - returns an Array of Strings that were separated by $/ - returns an Array of Strings that were separated by r IO.read - should read the contents of a file - should read the contents of a file up to a certain size when specified - should read the contents of a file from an offset of a specific size when specified - should throw an exception if the requested file does not exist - should throw an exception if given the wrong type or number of arguments IO#rewind - positions the instance to the beginning of input - sets lineno to 0 IO#seek - moves the read position relative to the current position with SEEK_CUR - moves the read position relative to the start with SEEK_SET - moves the read position relative to the end with SEEK_END IO#to_i - return the numeric file descriptor of the given IO object IO#write - writes a string without carriage returns - writes the result of calling to_s on arbitrary objects Math.acos - returns a float - returns the arccosine of the argument - raises an Errno::EDOM if the argument is greater than 1.0 - raises an Errno::EDOM if the argument is less than -1.0 - raises an ArgumentError if the argument cannot be coerced with Float() Math#acos - is accessible as a private instance method Math.asin - return a float - returns the arcsine of the argument - raises an Errno::EDOM if the argument is greater than 1.0 - raises an Errno::EDOM if the argument is less than -1.0 - raises an ArgumentError if the argument cannot be coerced with Float() Math#asin - is accessible as a private instance method Math.atan2 - returns a float - returns the arc tangent of y, x - raises an ArgumentError if the argument cannot be coerced with Float() Math#atan2 - is accessible as a private instance method Math.atan - returns a float - return the arctangent of the argument - raises an ArgumentError if the argument cannot be coerced with Float() Math#atan - is accessible as a private instance method Math::PI - approximates the value of pi - is accessible to a class that includes Math Math::E - approximates the value of Napier's constant - is accessible to a class that includes Math Math.cosh - returns a float - returns the hyperbolic cosine of the argument - raises an ArgumentError if the argument cannot be coerced with Float() Math#cosh - is accessible as a private instance method Math.cos - returns a float - returns the cosine of the argument expressed in radians - raises an ArgumentError if the argument cannot be coerced with Float() Math#cos - is accessible as a private instance method Math.exp - returns a float - returns the base-e exponential of the argument - raises an ArgumentError if the argument cannot be coerced with Float() Math#exp - is accessible as a private instance method Math.log10 - returns a float - return the base-10 logarithm of the argument - raises an Errno::EDOM if the argument is less than 0 - raises an ArgumentError if the argument cannot be coerced with Float() Math#log10 - is accessible as a private instance method Math.log - returns a float - returns the natural logarithm of the argument - raises an Errno::EDOM if the argument is less than 0 - raises an ArgumentError if the argument cannot be coerced with Float() Math#log - is accessible as a private instance method Math.sinh - returns a float - returns the hyperbolic sin of the argument - raises an ArgumentError if the argument cannot be coerced with Float() Math#sinh - is accessible as a private instance method Math.sin - returns a float - returns the sine of the argument expressed in radians - raises an ArgumentError if the argument cannot be coerced with Float() Math#sin - is accessible as a private instance method Math.sqrt - returns a float - returns the square root of the argument - raises an ArgumentError if the argument cannot be coerced with Float() Math#sqrt - is accessible as a private instance method Math.tanh - returns a float - returns the hyperbolic tangent of the argument - raises an ArgumentError if the argument cannot be coerced with Float() Math#tanh - is accessible as a private instance method Math.tan - returns a float - returns the tangent of the argument - returns NaN if called with +-Infinitty - raises an ArgumentError if the argument cannot be coerced with Float() Math#tan - is accessible as a private instance method NilClass#& - returns false NilClass#inspect - returns the string 'nil' NilClass#nil? - returns true NilClass#| - returns false if other is nil or false, otherwise true NilClass#to_a - returns an empty array NilClass#to_f - returns 0.0 - does not cause NilClass to be coerced to Float NilClass#to_i - returns 0 - does not cause NilClass to be coerced to Fixnum NilClass#to_s - returns the string '' - does not cause NilClass to be coerced to Fixnum NilClass#^ - returns false if other is nil or false, otherwise true Numeric#abs - return the abs (integers) - return the abs (floats) - return the abs (two complement) Numeric#ceil - ceil to integer - should ceil to float - ceil twos complement Numeric#coerce - coerce integers - coerce floats - coerce with 0 - should coerce strings to numerics - return the vaule if number is different to 0 Numeric#divmod - divmod right integers - divmod right integers and floats - divmod right the integers and floats - divmod right floats - raise the expected exception Numeric#div - div right integers - div right integers and floats - div right the integers and floats - div right floats - raise the expected exception Numeric#eql? - be equal (integers and floats) - should be equal (bignums and floats - be equal (edge cases) Numeric#floor - return the largest integer less than or equal to num (integer) - return the largest integer less than or equal to num (two complement) Numeric#integer? - retrun true if the num is an integer? Numeric#modulo - zero modulo x should be 0 (integer) - zero modulo x should be 0 (float) - zero modulo x should be 0 (bignum) - y modulo x should be z (integer - integer) - y modulo x should be z (integer - float) - modulo x should be z (floats and integers) - modulo x should be z (float - float) - y modulo x should be z (bignum - bignum) - should NOT raise ZeroDivisionError if other is zero and is a Float - should raise an Exception when divide by 0 (non float) Numeric#nonzero? - should return nil if the number is zero - should return the value if number is different to 0 Numeric#quo - quo should return the floating-point result of self divided by other - quo should NOT raise an exception when other is zero - quo right integers - quo right integers and floats - quo right the integers and floats - quo right floats - not raise a Exception when quo by 0 - raise the expected exception Numeric#remainder - remainder the right integers - remainder right integers and floats - remainder right the integers and floats - should remainder right with bignums and integers - raise the expected exception Numeric#round - round (down) - round (up) - round twos complement Numeric#step - if base < limit > step then it should iterate (base-limit)/step times (integers) - iterate one time if step is bigger than base-limit (integers) - not iterate if base is bigger than limit and step >0 (integers) - iterate backward if base is bigger than limit (integers) - not iterate if base is minor than limit and step <0 (integers) - if base < limit > step then it should iterate (base-limit)/step times (integers) - iterate one time if step is bigger than base-limit (integers) - if base < limit > step then it should iterate (base-limit)/step times (floats) - iterate one time if step is bigger than base-limit (floats) - not iterate if base is bigger than limit and step >0 (floats) - iterate backward if base is bigger than limit (floats) - not iterate if base is minor than limit and step <0 (floats) - if base < limit > step then iterate (base-limit)/step times (floats) - raise the expected exception Numeric#to_int - return the integer (integers) - return the integer part (float) - return the integer part (two complement) Numeric#truncate - truncate integers - truncate floats - truncate two complement Numeric#-@ - should return the same value with opposite sign (integers) - should return the same value with opposite sign (floats) - should return the same value with opposite sign (two complement) Numeric#+@ - should return the same value with opposite sign (integers) - should return the same value with opposite sign (floats) - should return the same value with opposite sign (floats) - should return the same value with opposite sign (two complement) Numeric#zero? - return the vaule if number is different to 0 Object.new - creates a new Object Precision#prec_f - converts a Integer to Float when called on an Integer - returns the same Float when called on a Float Precision#prec_i - returns the same Integer when called on an Integer - converts Float to an Integer when called on an Integer Float#prec - returns the same Float when given the class Float - converts the Float to an Integer when given the class Integer Integer#prec - returns the same Integer when given the class Integer - converts the Integer to Float when given the class Float Proc#call - invokes self - sets self's parameters to the given values - sets self's single parameter to an Array of all given values - replaces missing arguments with nil when called on a Proc created with Proc.new - silently ignores extra arguments when called on a Proc created with Proc.new Proc#[] - invokes self - sets self's parameters to the given values - sets self's single parameter to an Array of all given values - replaces missing arguments with nil when called on a Proc created with Proc.new - silently ignores extra arguments when called on a Proc created with Proc.new Proc.new - returns a new Proc instance from the passed block - raises a LocalJumpError when context of block no longer exists Range#begin - returns the first element of self Range#=== - returns true if other is an element of self Range#each - passes each element to the given block by using #succ - returns self - directly calls < (or <=) and + operator when Range#begin is Fixnum - dynamically invokes succ on Range where begin is not String or Numeric - dynamically invokes succ on Range where begin is String Range#end - end returns the last element of self Range#eql? - returns true if other has same begin, end, and exclude_end? values - returns false if other is no Range Range#== - returns true if other has same begin, end, and exclude_end? values - returns false if other is no Range Range#exclude_end? - returns true if the range exludes the end value Range#first - returns the first element of self Range#hash - is provided - generates the same hash values for Ranges with the same start, end and exclude_end? values Range#include? - returns true if other is an element of self Range#initialize - can't be called twice Range#inspect - provides a printable form, using #inspect to convert the start and end objects Range#last - end returns the last element of self Range#member? - returns true if other is an element of self Range.new - constructs a range using the given start and end - includes the end object when the third parameter is omitted or false - raises an ArgumentError when the given start and end can't be compared by using #<=> Range#step - passes each nth element to the block - raises an ArgumentError if stepsize is 0 or negative - returns self - directly calls < and + operator and doesn't call succ when Range#begin is Fixnum - dynamically invokes succ on Range where begin is not String or Numeric - dynamically invokes succ on Range where begin is String - dynamically invokes < on exclusive Range when begin is Float - dynamically invokes <= on inclusive Range when begin is Float - dynamically invokes + on Range when begin is Float Range#to_a - converts self to an array Range#to_s - provides a printable form of self Regexp#=== - is false if there is no match Regexp#=~ - returns nil if there is no match Regexp#match - returns nil if there is no match Regexp#source - returns the original string of the pattern String#<< - concatenates the given argument to self and returns self - converts the given argument to a String using to_str - raises a TypeError if the given argument can't be converted to a String String#<< with Fixnum - converts the given Fixnum to a char before concatenating - raises a TypeError when the given Fixnum is not between 0 and 255 - doesn't call to_int on its argument String#capitalize - returns a copy of self with the first character converted to uppercase and the remainder to lowercase - is locale insensitive (only upcases a-z and only downcases A-Z) String#capitalize! - capitalizes self in place - returns nil when no changes are made String#casecmp - is a case-insensitive version of String#<=> - doesn't consider non-ascii characters equal that aren't String#center with length, padding - returns a new string of specified length with self centered and padded with padstr - pads with whitespace if no padstr is given - returns self if it's longer than or as long as the specified length - raises an ArgumentError if padstr is empty String#chomp with separator - returns a new string with the given record separator removed - removes carriage return chars (\n, \r, \r\n) when separator is \n - returns an empty string when called on an empty string String#chomp! with seperator - returns nil if no modifications were made String#chop - returns a new string with the last character removed - removes both characters if the string ends with \r\n - returns an empty string when applied to an empty string String#chop! - behaves just like chop, but in-place - returns self if modifications were made - returns nil when called on an empty string String#<=> with String - returns -1 when self is less than other - returns 0 when self is equal to other - returns 1 when self is greater than other - considers string that comes lexicographically first to be less if strings have same size - doesn't consider shorter string to be less if longer string starts with shorter one - compares shorter string with corresponding number of first chars of longer string String#<=> - returns nil if its argument does not respond to to_str String#concat - concatenates the given argument to self and returns self - converts the given argument to a String using to_str - raises a TypeError if the given argument can't be converted to a String String#concat with Fixnum - converts the given Fixnum to a char before concatenating - raises a TypeError when the given Fixnum is not between 0 and 255 - doesn't call to_int on its argument String#downcase - returns a copy of self with all uppercase letters downcased - is locale insensitive (only replaces A-Z) String#downcase! - modifies self in place - returns nil if no modifications were made String#dump - ignores the $KCODE setting String#each_byte - passes each byte in self to the given block - returns self String#each_line - splits self using the supplied record separator and passes each substring to the block - appends multiple successive newlines together when the separator is an empty string - returns self - tries to convert the separator to a string using to_str String#each - splits self using the supplied record separator and passes each substring to the block - appends multiple successive newlines together when the separator is an empty string - returns self - tries to convert the separator to a string using to_str String#[] with index - returns the character code of the character at the given index - returns nil if index is outside of self - calls to_int on the given index String#[] with Range - calls to_int on range arguments - works with Range subclasses String#[] with Regexp, index - raises a TypeError when the given index can't be converted to Integer - raises a TypeError when the given index is nil String#[] with String - returns other_str if it occurs in self - taints resulting strings when other is tainted - doesn't set $~ - returns nil if there is no match - doesn't call to_str on its argument String#[]= with index - sets the code of the character at idx to char modulo 256 - raises an IndexError without changing self if idx is outside of self - sets the code to char % 256 - doesn't call to_int on char String#[]= with String - replaces the char at idx with other_str - raises an IndexError without changing self if idx is outside of self - tries to convert other_str to a String using to_str String#[]= with index, count - starts at idx and overwrites count characters before inserting the rest of other_str - counts negative idx values from end of the string - overwrites and deletes characters if count is more than the length of other_str - deletes characters if other_str is an empty string - deletes characters up to the maximum length of the existing string - appends other_str to the end of the string if idx == the length of the string - raises an IndexError if |idx| is greater than the length of the string - raises an IndexError if count < 0 String#empty? - returns true if the string has a length of zero String#eql? with String - returns true if self <=> string returns 0 - returns false if self <=> string does not return 0 String#eql? when given a non-String - returns false - does not try to call #to_str on the given argument String#== with String - returns true if self <=> string returns 0 - returns false if self <=> string does not return 0 String#== - returns false if obj does not respond to to_str String#hash - returns a hash based on a string's length and content String#include? with String - returns true if self contains other_str - tries to convert other to string using to_str - raises a TypeError if other can't be converted to string String#include? with Fixnum - returns true if self contains the given char - doesn't try to convert fixnum to an Integer using to_int String#index with object - raises a TypeError if obj isn't a String, Fixnum or Regexp - doesn't try to convert obj to an Integer via to_int - tries to convert obj to a string via to_str String#index with Fixnum - returns the index of the first occurrence of the given character - doesn't use fixnum % 256 - starts the search at the given offset - starts the search at offset + self.length if offset is negative - returns nil if offset + self.length is < 0 for negative offsets - returns nil if the character isn't found - converts start_offset to an integer via to_int String#index with String - returns the index of the first occurrence of the given substring - doesn't set $~ - starts the search at the given offset - starts the search at offset + self.length if offset is negative - returns nil if the substring isn't found - converts start_offset to an integer via to_int String#index with Regexp - starts the search at offset + self.length if offset is negative String#insert with index, other - inserts other before the character at the given index - modifies self in place - inserts after the given character on an negative count - raises an IndexError if the index is beyond string - converts other to a string using to_str - raises a TypeError if other can't be converted to string String#length - returns the length of self String#+ - returns a new string containing the given string concatenated to self - converts its argument to a string using to_str - doesn't return subclass instances String#scan - scans for occurrences of the string if pattern is a string String#size - returns the length of self String#split with String - returns an array of substrings based on splitting on the given string - doesn't set $~ String#split with Regexp - returns the original string if no matches are found String#succ - returns the successor by increasing the rightmost alphanumeric (digit => digit, letter => letter with same case) - increases non-alphanumerics (via ascii rules) if there are no alphanumerics - increases the next best alphanumeric (jumping over non-alphanumerics) if there is a carry - increases the next best character if there is a carry for non-alphanumerics - adds an additional character (just left to the last increased one) if there is a carry and no character left to increase String#swapcase - returns a new string with all uppercase chars from self converted to lowercase and vice versa - is locale insensitive (only upcases a-z and only downcases A-Z) String#swapcase! - modifies self in place - returns nil if no modifications were made String#to_str - returns self when self.class == String - taints the result when self is tainted String#to_sym - returns the symbol corresponding to self String#to_s - returns self when self.class == String - taints the result when self is tainted String#upcase - returns a copy of self with all lowercase letters upcased - is locale insensitive (only replaces a-z) String#upcase! - modifies self in place - returns nil if no modifications were made String#upto - passes successive values, starting at self and ending at other_string, to the block - calls the block once even when start eqals stop - upto calls block with self even if self is less than stop but stop length is less than self length - upto doesn't call block if stop is less than self and stop length is less than self length - doesn't call the block if self is greater than stop - stops iterating as soon as the current value's character count gets higher than stop's - returns self - tries to convert other to string using to_str - raises a TypeError if other can't be converted to a string - raises a LocalJumpError if other is a string but no block was given Struct#each_pair - passes each key value pair to the given block - fails if not passed a block Struct#each - passes each value to the given block - fails if not passed a block Struct[] - is a synonym for new Struct#[] - returns the attribute referenced - fails when it does not know about the requested attribute - fails if passed too many arguments - fails if not passed a string, symbol, or integer Struct#[]= - assigns the passed value - fails when trying to assign attributes which don't exist Struct#eql? - returns true if the other is the same object - returns true if the other has all the same fields - returns false if the other is a different object or has different fields Struct#== - returns true if the other is the same object - returns true if the other has all the same fields - returns false if the other is a different object or has different fields Struct#hash - returns the same fixnum for structs with the same content - returns the same value if structs are #eql? Struct#initialize - does nothing when passed a set of fields equal to self Struct#inspect - returns a string representation of some kind Struct#length - returns the number of attributes Struct#members - returns an array of attribute names Struct.new - creates a constant in Struct namespace with string as first argument - overwrites previously defined constants with string as first argument - calls to_str on its first argument (constant name) - accepts nil first argument for not creating constants - does not create a constant with symbol as first argument - creates a new anonymous class with symbol arguments - fails with invalid constant name as first argument - raises TypeError if object doesn't respond to to_sym - raises TypeError if object is not a Symbol - accepts Fixnums as Symbols unless fixnum.to_sym.nil? - raises ArgumentError if fixnum#to_sym is nil - instance_eval's a passed block - creates an instance - fails with too many arguments Struct#select - raises ArgumentError if given any non-block arguments - returns a new array of elements for which block is true - returns an instance of Array Struct#size - is a synonym for length Struct anonymous class instance methods - Enumerable methods should work - reader method should be a synonym for [] - reader method should not interfere with undefined methods - writer method be a synonym for []= Struct#to_a - returns the values for this instance as an array Struct#to_s - is a synonym for inspect Struct#values_at - returns an array of values - fails when passed unsupported types Struct#values - is a synonym for to_a Symbol#=== - returns true when the other is a Symbol Symbol#== - only returns true when the other is exactly the same symbol Symbol#id2name - returns the string corresponding to self Symbol#inspect - returns self as a symbol literal Symbol#to_int - returns Symbol#to_i Symbol#to_i - returns an integer that is unique for each symbol for each program execution Symbol#to_sym - returns self Symbol#to_s - returns the string corresponding to self TrueClass#& - returns false if other is nil or false, otherwise true TrueClass#inspect - returns the string 'true' TrueClass#| - returns true TrueClass#to_s - returns the string 'true' TrueClass#^ - returns true if other is nil or false, otherwise false 1323 examples, 0 failures