Class: Yarddown::Parser
- Inherits:
-
Object
- Object
- Yarddown::Parser
- Defined in:
- lib/yardbird/parser.rb
Class Method Summary collapse
Class Method Details
.parse(paths) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/yardbird/parser.rb', line 17 def self.parse(paths) paths.each do |path| YARD.parse path end # Only keep stuff with @path on it YARD::Registry.all. reject { |r| r.(:apidoc).empty? }. map { |t| Endpoint.new(t) }. sort_by { |e| e.path || '' } end |