I need to run a few lines of Ruby code from terminal, but I can\'t find the needed parameter for it.
Can you explain how to do this?
You can run ruby commands in one line with the -e flag:
-e
ruby -e "puts 'hi'"
Check the man page for more information.