method

setup_options

ruby latest stable - Class: Test::Unit::GCStressOption

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

setup_options(parser, options)
public

No documentation available.

# File lib/test/unit.rb, line 216
      def setup_options(parser, options)
        super
        parser.on '--[no-]gc-stress', 'Set GC.stress as true' do |flag|
          options[:gc_stress] = flag
        end
      end