I am wondering how to pass a false value to my ruby script.
If I call:
ruby myscript.rb false
and then in my script if I say:
my_class.new(*ARGV) or my_class.new(ARGV[0])
basically a string with the value "false" is passed. Clear if i say
if(ARGV[0]){ do something} .. this gets executed even if value passed is false.
Can I change my function signature to auto-covert paramter to boolean .. so I don't have to do
if(ARGV[0]=='true')
source share