Module: Test::Unit::LoadPathOption
Instance Method Summary collapse
Methods included from Options
#initialize, #option_parser, #process_args
Instance Method Details
#setup_options(parser, options) ⇒ Object
177 178 179 180 181 182 |
# File 'lib/test/unit.rb', line 177 def (parser, ) super parser.on '-Idirectory', 'Add library load path' do |dirs| dirs.split(':').each { |d| $LOAD_PATH.unshift d } end end |