Module: Test::Unit::LoadPathOption

Included in:
Runner
Defined in:
lib/test/unit.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#setup_options(parser, options) ⇒ Object



207
208
209
210
211
212
# File 'lib/test/unit.rb', line 207

def setup_options(parser, options)
  super
  parser.on '-Idirectory', 'Add library load path' do |dirs|
    dirs.split(':').each { |d| $LOAD_PATH.unshift d }
  end
end