module Rcodetools

Call Ri for any editors!!

by rubikitch <rubikitch@ruby-lang.org>

Constants

DEFAULT_OPTIONS
FLOAT_TOLERANCE

Public Instance Methods

check_opts(options) click to toggle source
# File lib/rcodetools/options.rb, line 106
def check_opts(options)
  if options[:test_script]
    unless options[:filename]
      $stderr.puts "You must specify --filename as well as -t(--test)."
      exit 1
    end
  end
end
set_extra_opts(options) click to toggle source
# File lib/rcodetools/options.rb, line 97
def set_extra_opts(options)
  if idx = ARGV.index("--")
    options[:options] = ARGV[idx+1..-1]
    ARGV.replace ARGV[0...idx]
  else
    options[:options] = []
  end
end