Method: Decode::Definition#initialize

Defined in:
lib/decode/definition.rb

#initialize(name, parent: nil, language: parent.language, comments: nil) ⇒ Definition

Initialize the symbol.

Parameters:

  • name (Symbol)

    The name of the definition.

  • parent (Symbol) (defaults to: nil)

    The parent lexical scope.

  • language (Language) (defaults to: parent.language)

    The language in which the symbol is defined in.

  • comments (Array(String)) (defaults to: nil)

    The comments associated with the definition.



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/decode/definition.rb', line 29

def initialize(name, parent: nil, language: parent.language, comments: nil)
	@name = name
	
	@comments = comments
	@language = language
	@parent = parent
	
	@path = nil
	@qualified_name = nil
	@documentation = nil
end