Class: MilkTea::AST::Import

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, alias_name:, line: nil, column: nil, length: nil) ⇒ Import

Returns a new instance of Import.



55
# File 'lib/milk_tea/core/ast.rb', line 55

def initialize(path:, alias_name:, line: nil, column: nil, length: nil) = super

Instance Attribute Details

#alias_nameObject (readonly)

Returns the value of attribute alias_name

Returns:

  • (Object)

    the current value of alias_name



54
55
56
# File 'lib/milk_tea/core/ast.rb', line 54

def alias_name
  @alias_name
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



54
55
56
# File 'lib/milk_tea/core/ast.rb', line 54

def column
  @column
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



54
55
56
# File 'lib/milk_tea/core/ast.rb', line 54

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



54
55
56
# File 'lib/milk_tea/core/ast.rb', line 54

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



54
55
56
# File 'lib/milk_tea/core/ast.rb', line 54

def path
  @path
end