Typically methods with names ending in modify their receiver while those without a return.
Ruby string contains.
5 how to find out if a string contains another string.
Is a string class method in ruby which is used to return true if the given string contains the given string or character.
6 how to pad a ruby string.
10 convert a string to an array of characters.
In this post i will show you several methods for finishing this operation with a little bit more analysis of the implementation.
How to check a string contains another string.
A substring is a sequence of characters within a string or in other words a substring is a part of the string.
Because of aliasing issues users of strings should be aware of the methods that modify the contents of a string object.
String objects may be created using new or as literals.
7 compare strings ignoring case.
11 convert an array to a string.
One of the most common operations a programmer use on strings is to check whether a string contains another string.
Because of aliasing issues users of strings should be aware of the methods that modify the contents of a string object.
Typically methods with names ending in modify their receiver while those without a return a new.
8 how to trim a string remove white space.
A string object holds and manipulates an arbitrary sequence of bytes typically representing characters.
12 convert a string into an integer.
9 string prefix suffix.
Ruby provides you a keyword through which you can check the availability of a substring.
Given a string and substring we have to check whether a string contains a substring or not.
Checking substring in a string.
13 check if a string is a number.