Class: YARD::Amp::LegacyAmpCommandHandler

Inherits:
Handlers::Ruby::Legacy::Base
  • Object
show all
Includes:
ParsingHelpers
Defined in:
lib/yard-amp/legacy_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



49
50
51
# File 'lib/yard-amp/legacy_handler.rb', line 49

def (meta = {})
  owner[:amp_data].merge!(meta)
end

#processObject



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