instance method
find
Ruby on Rails 3.1.12
Since v2.2.3 Last seen in v5.2.8.1Signature
find(dirs=%w(app lib test))
Returns a hash that maps filenames under dirs (recursively) to arrays with their annotations. Only files with annotations are included, and only those with extension .builder, .rb, .rxml, .rhtml, and .erb are taken into account.
Parameters
-
dirsopt = %w(app lib test)
Source
# File railties/lib/rails/source_annotation_extractor.rb, line 52
def find(dirs=%w(app lib test))
dirs.inject({}) { |h, dir| h.update(find_in(dir)) }
end
Defined in railties/lib/rails/source_annotation_extractor.rb line 52
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in SourceAnnotationExtractor