in ruby no main method,so how to know the execution starting point? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

in ruby no main method,so how to know the execution starting point?

c++,java have main method ,so execution starts from main in ruby?

30th May 2017, 3:38 PM
Saikumar Neelisetty
Saikumar Neelisetty - avatar
1 Answer
0
Ruby is scripting language, its starting point is first line after shebang #!/usr/bin/ruby
30th May 2017, 11:55 PM
Muhammad Muntaza
Muhammad Muntaza - avatar