I know that similar questions have been asked previously, but how do I go about building a Ruby file that can be run in the terminal without typing "ruby" before it?
The end goal here is to create a command line toolkit-type thing. Right now, in order to do what I want the user to be able to do, they must type
ruby Cherry init file_name
into the terminal.
What I would like, is the following:
Cherry init file_name
Is there anything I can add to the ruby file itself that allows it to be run with Ruby automatically, just by calling the name of the file? If not, how would I go about doing that? Any and all help is appreciated, as the other similar threads had no answers which I could understand.