ruby - Differentiate between Module and Class -
the following yields error:
require 'test/unit' test::unit.setup_argv(["tests"]) $ run_tests.rb:4: undefined method `setup_argv' test::unit:module (nomethoderror)
how can make ruby use test::unit
class instead of test::unit
module method call?
edit ruby 1.8.7
the reason error setup_argv not available in ruby 1.8.7.
test::unit module. there no class.
see 1.8.7 docs here how use:
http://apidock.com/ruby/v1_8_7_330/test/unit
Comments
Post a Comment