str.start_with?([prefixes]+) â true or false
Instance Public methods
Returns true if str
starts with one of the
prefixes
given.
"hello".start_with?("hell") #=> true # returns true if one of the prefixes matches. "hello".start_with?("heaven", "hell") #=> true "hello".start_with?("heaven", "paradise") #=> false
Please login to continue.