Class: YARD::Amp::LegacyWorkflowHandler

Inherits:
LegacyAmpCommandHandler show all
Defined in:
lib/yard-amp/legacy_handler.rb

Constant Summary collapse

MATCH =
/workflow=?\(?\s*(.*)\s*\)?\s*/

Instance Method Summary collapse

Methods inherited from LegacyAmpCommandHandler

#attach_metadata

Methods included from ParsingHelpers

#clean_string, #construct_docstring, #parse_hash, #split_by_comma_smart

Instance Method Details

#processObject



82
83
84
85
86
# File 'lib/yard-amp/legacy_handler.rb', line 82

def process
  return unless super
  param = clean_string(statement.tokens.to_s[MATCH, 1].strip)
  .merge!(:workflow => param)
end