Mega Code Archive
Categories
/
Ruby
/
Language Basics
Avoid typing ruby each time on UnixLinux systems by adding a shebang line (#!) at the top of your Ruby file
#!/usr/local/bin/ruby # a nice greeting for Tom puts "Hello, Tom!"