Predicate methods
If we look at the list of methods defined for a String object, we see that there are methods that end with a question mark (?).
In Ruby convention, these methods return either true or false. For example, we ...
If we look at the list of methods defined for a String object, we see that there are methods that end with a question mark (?).
In Ruby convention, these methods return either true or false. For example, we ...