I have a ruby code like this:
module MyClass
def self.my_method?
return false
end
end
From command line I have to call that method and get the return value. But if I do
ruby -e "require './PATH/TO/THE/FILE/file.rb'; MyClass.my_method?"
I always get $? or exit code = 0.
How can I call ruby methods GETTING its return value ?
Thanks