Method: Yadriggy::LocalVarType#definition

Defined in:
lib/yadriggy/type.rb

#definitionASTnode|Undef|nil

Returns the AST node where the variable appears for the first time, in other words, where the variable's type is defined. Undef if a value is assigned to the variable more than once. nil if an initial value has not been assigned to the variable yet.

Returns:

  • (ASTnode|Undef|nil)

    the AST node where the variable appears for the first time, in other words, where the variable's type is defined. Undef if a value is assigned to the variable more than once. nil if an initial value has not been assigned to the variable yet.



731
732
733
# File 'lib/yadriggy/type.rb', line 731

def definition
  @definition
end