Class: Packwerk::Reference

Inherits:
Struct
  • Object
show all
Defined in:
lib/packwerk/reference.rb

Overview

A reference from a file in one package to a constant that may be defined in a different package.

Instance Attribute Summary collapse

Instance Attribute Details

#constantObject

Returns the value of attribute constant

Returns:

  • (Object)

    the current value of constant



6
7
8
# File 'lib/packwerk/reference.rb', line 6

def constant
  @constant
end

#packageObject

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



6
7
8
# File 'lib/packwerk/reference.rb', line 6

def package
  @package
end

#relative_pathObject

Returns the value of attribute relative_path

Returns:

  • (Object)

    the current value of relative_path



6
7
8
# File 'lib/packwerk/reference.rb', line 6

def relative_path
  @relative_path
end

#source_locationObject

Returns the value of attribute source_location

Returns:

  • (Object)

    the current value of source_location



6
7
8
# File 'lib/packwerk/reference.rb', line 6

def source_location
  @source_location
end