Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
38.4K+ articles
DSA
22.5K+ articles
Python
20.5K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
11.7K+ articles
School Learning
11.4K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
ASCII
150+ articles
Ruby String-class
56 posts
Recent Articles
Popular Articles
Ruby | String inspect Method
Last Updated: 09 December 2019
inspect is a String class method in Ruby which is used to return a printable version of the given string, surrounded by quote marks, with special characters escaped.Syntax...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String insert Method
Last Updated: 09 December 2019
insert is a String class method in Ruby which is used to inserts the specified string before the character at the given index, modifying the given one. Negative indices co...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String index Method
Last Updated: 09 December 2019
index is a String class method in Ruby which is used to returns the index of the first occurrence of the given substring or pattern (regexp) in the given string. It specif...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String include? Method
Last Updated: 09 December 2019
include? is a String class method in Ruby which is used to return true if the given string contains the given string or character.Syntax: str.include?Parameters: Here, str...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String hex Method
Last Updated: 09 December 2019
hex is a String class method in Ruby which is used to treats the leading characters from the given string as a string of hexadecimal digits (with an optional sign and an o...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | StringIO bytes function
Last Updated: 26 December 2022
StringIO#bytes() : bytes() is a StringIO class method which returns the value of bytes of the stringIO.Syntax: StringIO.bytes() Parameter: StringIO values Return: value of...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String hash method
Last Updated: 12 December 2019
hash is a String class method in Ruby which is used to return a hash based on the string's length, content and encoding.Syntax: str.hashParameters: Here, str is the given ...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String gsub! Method
Last Updated: 12 December 2019
gsub! is a String class method in Ruby which is used to return a copy of the given string with all occurrences of pattern substituted for the second argument. If no substi...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String gsub Method
Last Updated: 12 December 2019
gsub is a String class method in Ruby which is used to return a copy of the given string with all occurrences of pattern substituted for the second argument. Syntax: str.g...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String grapheme_clusters Method
Last Updated: 12 December 2019
grapheme_clusters is a String class method in Ruby which is used to return an array of grapheme clusters in the given string.Syntax: str.grapheme_clustersParameters: Here,...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String getbyte Method
Last Updated: 12 December 2019
getbyte is a String class method in Ruby which is used to return the indexth byte as an integer.Syntax: str.getbyte(index)Parameters: Here, str is the given string.Returns...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String eql? Method
Last Updated: 12 December 2019
eql? is a String class method in Ruby which is used to check whether the strings are equal or not if they have the same length and content.Syntax: str.eql?(Other_str)Param...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String end_with? Method
Last Updated: 12 December 2019
end_with? is a String class method in Ruby which is used to check if the specified string ends with one of the suffixes given or not.Syntax: str.end_with?Parameters: Here,...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String encoding Method
Last Updated: 12 December 2019
encoding is a String class method in Ruby which is used to return the Encoding object that represents the encoding of object.Syntax: str.encodingParameters: Here, str is t...
read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String each_line Method
Last Updated: 12 December 2019
each_line is a String class method in Ruby which is used to split the given string sing the supplied parameter as the record separator ($/ by default), passing each substr...
read more
Ruby
Ruby-Methods
Ruby String-class
1
2
3
4
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !