Class: Warning::buffer
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::String
|
|
Instance Chain:
self,
::String ,
::Comparable
|
|
Inherits: | String |
Defined in: | error.c |
Class Method Summary
::String
- Inherited
Instance Attribute Summary
::String
- Inherited
#ascii_only? | Returns true for a string which has only ASCII characters. |
#empty?, | |
#valid_encoding? | Returns true for a string which is encoded correctly. |
Instance Method Summary
::String
- Inherited
#%, #*, #+, #+@, #-@, #<<, #<=>, #==, #===, #=~, | |
#[] | Returns the substring of |
#[]= | Element Assignment—Replaces some or all of the content of str. |
#b | Returns a copied string whose encoding is ASCII-8BIT. |
#bytes | Returns an array of bytes in str. |
#bytesize, | |
#byteslice | Returns a substring of |
#capitalize | Returns a string containing the characters in |
#capitalize! | Upcases the first character in |
#casecmp, #casecmp?, | |
#center | Centers |
#chars | Returns an array of characters in str. |
#chomp | Returns a new |
#chomp! | Modifies str in place as described for String#chomp, returning str, or |
#chop | Returns a new |
#chop! | Processes str as for String#chop, returning str, or |
#chr | Returns a string containing the first character of |
#clear | Removes the contents of |
#codepoints | Returns an array of the |
#concat, | |
#count | Each |
#crypt | Returns the string generated by calling |
#delete | Returns a copy of str with all characters in the intersection of its arguments deleted. |
#delete! | Performs a |
#delete_prefix | Returns a copy of str with leading |
#delete_prefix! | Deletes leading |
#delete_suffix | Returns a copy of str with trailing |
#delete_suffix! | Deletes trailing |
#downcase | Returns a string containing the downcased characters in |
#downcase! | Downcases the characters in |
#dump | Returns a printable version of |
#each_byte | Passes each byte in str to the given block, or returns an enumerator if no block is given. |
#each_char | Passes each character in str to the given block, or returns an enumerator if no block is given. |
#each_codepoint | Passes the |
#each_grapheme_cluster | Passes each grapheme cluster in str to the given block, or returns an enumerator if no block is given. |
#each_line | Splits str using the supplied parameter as the record separator ( |
#encode | The first form returns a copy of |
#encode! | The first form transcodes the contents of str from str.encoding to |
#encoding | Alias for Regexp#encoding. |
#end_with? | Returns true if |
#eql?, | |
#force_encoding | Changes the encoding to |
#freeze, | |
#getbyte | Returns the byte at zero-based |
#grapheme_clusters | Returns an array of grapheme clusters in str. |
#gsub | Returns a copy of |
#gsub! | Performs the specified substring replacement(s) on |
#hash, | |
#hex | Treats leading characters from str as a string of hexadecimal digits (with an optional sign and an optional |
#include? | Returns |
#index, | |
#initialize_copy | Alias for String#replace. |
#insert | Inserts the given |
#inspect | Returns a printable version of |
#intern | Returns the |
#length, | |
#lines | Returns an array of lines in str split using the supplied record separator ( |
#ljust | If integer is greater than the length of str, returns a new |
#lstrip | Returns a copy of the receiver with leading whitespace removed. |
#lstrip! | Removes leading whitespace from the receiver. |
#match, #match?, | |
#next | Returns the successor to |
#next! | Equivalent to String#succ, but modifies |
#oct | Treats leading characters of str as a string of octal digits (with an optional sign) and returns the corresponding number. |
#ord | Returns the |
#partition | Searches sep or pattern (regexp) in the string and returns the part before it, the match, and the part after it. |
#prepend, | |
#replace | Replaces the contents of |
#reverse | Returns a new string with the characters from |
#reverse! | Returns |
#rindex, | |
#rjust | If integer is greater than the length of str, returns a new |
#rpartition | Searches sep or pattern (regexp) in the string from the end of the string, and returns the part before it, the match, and the part after it. |
#rstrip | Returns a copy of the receiver with trailing whitespace removed. |
#rstrip! | Removes trailing whitespace from the receiver. |
#scan | |
#scrub | If the string is invalid byte sequence then replace invalid bytes with given replacement character, else returns self. |
#scrub! | If the string is invalid byte sequence then replace invalid bytes with given replacement character, else returns self. |
#setbyte | Sets the byte at zero-based |
#size, | |
#slice | Alias for String#[]. |
#slice! | Removes the substring of |
#split | Divides str into substrings based on a delimiter, returning an array of these substrings. |
#squeeze | Builds a set of characters from the other_str parameter(s) using the procedure described for String#count. |
#squeeze! | Squeezes str in place, returning either str, or |
#start_with? | Returns true if |
#strip | Returns a copy of the receiver with leading and trailing whitespace removed. |
#strip! | Removes leading and trailing whitespace from the receiver. |
#sub | Returns a copy of |
#sub! | Returns |
#succ | Alias for String#next. |
#succ! | Alias for String#next!. |
#sum | Returns a basic n-bit checksum of the characters in str, where n is the optional |
#swapcase | Returns a string containing the characters in |
#swapcase! | Upcases each lowercase character in |
#to_c | Returns a complex which denotes the string form. |
#to_f | Returns the result of interpreting leading characters in |
#to_i | Returns the result of interpreting leading characters in |
#to_r | Returns the result of interpreting leading characters in |
#to_s | Returns |
#to_str | Alias for String#to_s. |
#to_sym | Alias for String#intern. |
#tr | Returns a copy of |
#tr! | Translates str in place, using the same rules as String#tr. |
#tr_s | Processes a copy of str as described under String#tr, then removes duplicate characters in regions that were affected by the translation. |
#tr_s! | Performs String#tr_s processing on str in place, returning str, or |
#undump | Returns an unescaped version of |
#unicode_normalize | Unicode Normalization—Returns a normalized form of |
#unicode_normalize! | Destructive version of String#unicode_normalize, doing Unicode normalization in place. |
#unicode_normalized? | Checks whether |
#unpack | Decodes str (which may contain binary data) according to the format string, returning an array of each value extracted. |
#unpack1 | Decodes str (which may contain binary data) according to the format string, returning the first value extracted. |
#upcase | Returns a string containing the upcased characters in |
#upcase! | Upcases the characters in |
#upto | With a block given, calls the block with each String value returned by successive calls to |
::Comparable
- Included
#< | Compares two objects based on the receiver’s |
#<= | Compares two objects based on the receiver’s |
#== | Compares two objects based on the receiver’s |
#> | Compares two objects based on the receiver’s |
#>= | Compares two objects based on the receiver’s |
#between? | Returns |
#clamp | In |
Constructor Details
This class inherits a constructor from String
Instance Method Details
#write(*args)
[ GitHub ]# File 'error.c', line 544
static VALUE warning_write(int argc, VALUE *argv, VALUE buf) { while (argc-- > 0) { rb_str_append(buf, *argv++); } return buf; }