@@ -688,13 +688,6 @@ def current_section
688
688
section
689
689
end
690
690
691
- ##
692
- # Is part of this thing was defined in +file+?
693
-
694
- def defined_in? ( file )
695
- @in_files . include? ( file )
696
- end
697
-
698
691
def display ( method_attr ) # :nodoc:
699
692
if method_attr . is_a? RDoc ::Attr
700
693
"#{ method_attr . definition } #{ method_attr . pretty_name } "
@@ -713,41 +706,13 @@ def display(method_attr) # :nodoc:
713
706
def each_ancestor ( &_ ) # :nodoc:
714
707
end
715
708
716
- ##
717
- # Iterator for attributes
718
-
719
- def each_attribute # :yields: attribute
720
- @attributes . each { |a | yield a }
721
- end
722
-
723
709
##
724
710
# Iterator for classes and modules
725
711
726
712
def each_classmodule ( &block ) # :yields: module
727
713
classes_and_modules . sort . each ( &block )
728
714
end
729
715
730
- ##
731
- # Iterator for constants
732
-
733
- def each_constant # :yields: constant
734
- @constants . each { |c | yield c }
735
- end
736
-
737
- ##
738
- # Iterator for included modules
739
-
740
- def each_include # :yields: include
741
- @includes . each do |i | yield i end
742
- end
743
-
744
- ##
745
- # Iterator for extension modules
746
-
747
- def each_extend # :yields: extend
748
- @extends . each do |e | yield e end
749
- end
750
-
751
716
##
752
717
# Iterator for methods
753
718
@@ -847,13 +812,6 @@ def find_external_alias_named(name)
847
812
end
848
813
end
849
814
850
- ##
851
- # Finds a file with +name+ in this context
852
-
853
- def find_file_named name
854
- @store . find_file_named name
855
- end
856
-
857
815
##
858
816
# Finds an instance method with +name+ in this context
859
817
@@ -871,7 +829,7 @@ def find_local_symbol(symbol)
871
829
find_attribute_named ( symbol ) or
872
830
find_external_alias_named ( symbol ) or
873
831
find_module_named ( symbol ) or
874
- find_file_named ( symbol )
832
+ @store . find_file_named ( symbol )
875
833
end
876
834
877
835
##
0 commit comments