Method: Glyph::Macro#update_source

Defined in:
lib/glyph/macro.rb

#update_source(name, file = nil, topic = nil) ⇒ Object

Resets the name of the updated source (call before calling Macro#interpret)

Parameters:

  • name (String)

    the source name

  • file (String) (defaults to: nil)

    the source file

  • topic (String) (defaults to: nil)

    the topic file

Since:

  • 0.3.0



33
34
35
36
# File 'lib/glyph/macro.rb', line 33

def update_source(name, file=nil, topic=nil)
	file ||= @node[:source][:file] rescue nil
	@updated_source = {:name => name, :file => file, :topic => topic}
end