Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
ASCII
140+ articles
Ruby String-class
56 posts
Popular Articles
Recent Articles
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
...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)
...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: st
...read more
Ruby
Ruby-Methods
Ruby String-class
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
ASCII
140+ articles
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 th
...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.S
...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:
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String delete() Method
Last Updated: 13 December 2019
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 of its ar
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String count() Method
Last Updated: 13 December 2019
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 intersectio
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String chomp! Method
Last Updated: 13 December 2019
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 str (if
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String chars() Method
Last Updated: 17 December 2019
chars is a String class method in Ruby which is used to return an array of characters in str.Syntax: str.charsParameters: Here, str is the g
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String concat Method
Last Updated: 07 January 2020
concat is a String class method in Ruby which is used to Concatenates two objects of String. If the given object is an Integer, then it is c
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String empty? Method
Last Updated: 08 January 2020
empty? is a String class method in Ruby which is used to check whether the string length is zero or not.Syntax: str.empty?Parameters: Here,
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String reverse Method
Last Updated: 08 January 2020
reverse is a String class method in Ruby which is used to return a new string with the characters from the given string in reverse order.Syn
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String length Method
Last Updated: 08 January 2020
length is a String class method in Ruby which is used to find the character length of the given string.Syntax: str.lengthParameters: Here, s
...read more
Ruby
Ruby-Methods
Ruby String-class
Ruby | String capitalize() Method
Last Updated: 08 January 2020
capitalize is a String class method in Ruby which is used to return a copy of the given string by converting its first character uppercase a
...read more
Ruby
Ruby-Methods
Ruby String-class
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
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 !