str.start_with?([prefixes]+) â true or false
Instance Public methods
Returns true if str
starts with one of the
prefixes
given.
1 2 3 4 5 | "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.