each_byte is a String class method in Ruby which is used to passes each byte in the given string to the given block or returns… Read More
Category Archives: Ruby
dump is a String class method in Ruby which is used to generate a version of the given string with all non-printing characters replaced by… Read More
delete_suffix! is a String class method in Ruby which is used to return a a copy of the given string with trailing suffix deleted or… Read More
delete_prefix! is a String class method in Ruby which is used to return a a copy of the given string with leading prefix deleted or… Read More
delete_suffix is a String class method in Ruby which is used to return a a copy of the given string with trailing suffix deleted. Syntax:… Read More
delete_prefix is a String class method in Ruby which is used to return a a copy of the given string with leading prefix deleted. Syntax:… Read More
delete! is a String class method in Ruby which is used to perform a delete operation, returning the given string, or nil if the given… Read More
delete is a String class method in Ruby which is used to return a copy of the given string with all characters in the intersection… Read More
crypt is a String class method in Ruby which is used to returns the string generated by calling crypt(3) standard library function with str and… Read More
count is a String class method in Ruby. In this method each parameter defines a set of characters to which is to be counted. The… Read More
codepoints is a String class method in Ruby which is used to return an array of the Integer ordinals of the characters in str. Syntax:… Read More
clear is a String class method in Ruby which is used to make the string empty. Syntax: str.clear Parameters: Here, str is the given string.… Read More
chr is a String class method in Ruby which is used to return a one-character string at the beginning of the string. Syntax:str.chr Parameters: Here,… Read More
chop! is a String class method in Ruby which is used to return a new String with the last character removed. Both characters are removed… Read More
chomp! is a String class method in Ruby which is used to returns new String with the given record separator removed from the end of… Read More