Class: YARD::Amp::ModernAmpCommandHandler
- Inherits:
-
Handlers::Ruby::Base
- Object
- Handlers::Ruby::Base
- YARD::Amp::ModernAmpCommandHandler
- Includes:
- ParsingHelpers
- Defined in:
- lib/yard-amp/modern_handler.rb
Direct Known Subclasses
ModernDescriptionHandler, ModernHelpHandler, ModernOptionHandler, ModernWorkflowHandler
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
50 51 52 |
# File 'lib/yard-amp/modern_handler.rb', line 50 def ( = {}) owner[:amp_data].merge!() end |
#process ⇒ Object
44 45 46 47 48 |
# File 'lib/yard-amp/modern_handler.rb', line 44 def process return nil unless owner.inheritance_tree(false).include?(P("Amp::Command")) owner[:amp_data] ||= {} true end |