Class: YARD::Amp::LegacyDescriptionHandler
- Inherits:
-
LegacyAmpCommandHandler
- Object
- Handlers::Ruby::Legacy::Base
- LegacyAmpCommandHandler
- YARD::Amp::LegacyDescriptionHandler
- Defined in:
- lib/yard-amp/legacy_handler.rb
Constant Summary collapse
- MATCH =
/desc=?\(?\s*(.*)\s*\)?\s*/
Instance Method Summary collapse
Methods inherited from LegacyAmpCommandHandler
Methods included from ParsingHelpers
#clean_string, #construct_docstring, #parse_hash, #split_by_comma_smart
Instance Method Details
#process ⇒ Object
70 71 72 73 74 75 |
# File 'lib/yard-amp/legacy_handler.rb', line 70 def process return unless super param = clean_string(statement.tokens.to_s[MATCH, 1].strip) .merge!(:desc => param) end |