SyntaxFix
Write A Post
Hire A Developer
Questions
puts 'abcdefg'.start_with?('abc') #=> true
[edit] This is something I didn't know before this question: start_with takes multiple arguments.
start_with
'abcdefg'.start_with?( 'xyz', 'opq', 'ab')