class YARD::CodeObjects::MacroObject
def find_or_create(macro_name, data, method_object = nil)
-
(nil)- if the +data+ has no macro tag or if the macro is -
(MacroObject)- the newly created or existing macro, depending
Parameters:
-
method_object(CodeObjects::Base) -- an optional method to attach -
macro_name(#to_s) -- the name of the macro
def find_or_create(macro_name, data, method_object = nil) find(name) || create(macro_name, data, method_object) end