Class: YARD::Amp::LegacyAmpCommandHandler
- Inherits:
-
Handlers::Ruby::Legacy::Base
- Object
- Handlers::Ruby::Legacy::Base
- YARD::Amp::LegacyAmpCommandHandler
- Includes:
- ParsingHelpers
- Defined in:
- lib/yard-amp/legacy_handler.rb
Direct Known Subclasses
LegacyDescriptionHandler, LegacyHelpHandler, LegacyOptionHandler, LegacyWorkflowHandler
Instance Method Summary collapse
Methods included from ParsingHelpers
#clean_string, #construct_docstring, #parse_hash, #split_by_comma_smart
Instance Method Details
#attach_metadata(meta = {}) ⇒ Object
49 50 51 |
# File 'lib/yard-amp/legacy_handler.rb', line 49 def ( = {}) owner[:amp_data].merge!() end |
#process ⇒ Object
43 44 45 46 47 |
# File 'lib/yard-amp/legacy_handler.rb', line 43 def process return nil unless owner.inheritance_tree(false).include?(P("Amp::Command")) owner[:amp_data] ||= {} true end |