How does parse work?

How is it different from split? chomp?

You might find reading the documentation and having irb is useful to
learning things.

String#chomp: class String - RDoc Documentation

As for “parse”, you’ll have to be more specific with your question;
you can find information in documentation, or, failing that, Google.