Method: Glyph::Interpreter#document

Defined in:
lib/glyph/interpreter.rb

#documentGlyph::Document

Returns the finalized @document (calls self#process and self#postprocess if necessary)

Returns:

[View source]

34
35
36
37
38
39
40
# File 'lib/glyph/interpreter.rb', line 34

def document
	parse unless @tree
	return @document if @document.finalized?
	process if @document.new?
	postprocess if @document.analyzed?
	@document
end