I usually use
if __FILE__ == $0
x = SweetClass.new(ARGV)
x.run # or go, or whatever
end
So yes, you can. It just depends on what you are doing.
I usually use
if __FILE__ == $0
x = SweetClass.new(ARGV)
x.run # or go, or whatever
end
So yes, you can. It just depends on what you are doing.