Class: YARD::Amp::ModernAmpCommandHandler

Inherits:
Handlers::Ruby::Base
  • Object
show all
Includes:
ParsingHelpers
Defined in:
lib/yard-amp/modern_handler.rb

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 (meta = {})
  owner[:amp_data].merge!(meta)
end

#processObject



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