def helloworld puts "Hello World!" end if $0 == __FILE__ helloworld end