method
run
v1_9_1_378 -
Show latest stable
-
0 notes -
Class: Driver
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (38)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
run()
public
Hide source
# File lib/rdoc/ri/driver.rb, line 584 def run if(@list_doc_dirs) puts @doc_dirs.join("\n") elsif @names.empty? then @display.list_known_classes class_cache.keys.sort else @names.each do |name| if class_cache.key? name then method_map = display_class name if(@interactive) method_name = @display.get_class_method_choice(method_map) if(method_name != nil) method = lookup_method "#{name}#{method_name}", name display_method method end end elsif name =~ /::|\#|\./ then klass, = parse_name name orig_klass = klass orig_name = name loop do method = lookup_method name, klass break method if method ancestor = lookup_ancestor klass, orig_klass break unless ancestor name = name.sub klass, ancestor klass = ancestor end raise NotFoundError, orig_name unless method display_method method else methods = select_methods(/#{name}/) if methods.size == 0 raise NotFoundError, name elsif methods.size == 1 display_method methods[0] else if(@interactive) @display.display_method_list_choice methods else @display.display_method_list methods end end end end end rescue NotFoundError => e abort e.message end