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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -