class YARD::CodeObjects::MacroObject

def create(macro_name, data, method_object = nil)

Returns:
  • (MacroObject) - the newly created object

Parameters:
  • method_object (CodeObjects::Base) -- an object to attach this
  • data (String) -- the data the macro should expand when re-used
  • macro_name (String) -- the name of the macro, must be unique.
def create(macro_name, data, method_object = nil)
  obj = new(:root, macro_name)
  obj.macro_data = data
  obj.method_object = method_object
  obj
end