Class: JsDuck::Process::ReturnValues
- Inherits:
-
Object
- Object
- JsDuck::Process::ReturnValues
- Defined in:
- lib/jsduck/process/return_values.rb
Overview
Auto-detector return values and @chainable tags.
Adds @chainable tag when doc-comment contains @return OwnerClass this. Also the other way around: when @chainable found, adds appropriate @return.
Instance Method Summary collapse
-
#initialize(relations) ⇒ ReturnValues
constructor
A new instance of ReturnValues.
- #process_all! ⇒ Object
Constructor Details
#initialize(relations) ⇒ ReturnValues
Returns a new instance of ReturnValues.
10 11 12 13 |
# File 'lib/jsduck/process/return_values.rb', line 10 def initialize(relations) @relations = relations @cls = nil end |
Instance Method Details
#process_all! ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/jsduck/process/return_values.rb', line 15 def process_all! @relations.each do |cls| @cls = cls cls.find_members(:tagname => :method, :local => true, :static => false).each do |m| process(m) end end end |