Class: MetzScan::Analyzers::ImplicitContextPressure::AmbientContextCollector::Reference

Inherits:
Struct
  • Object
show all
Defined in:
lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_modeObject

Returns the value of attribute access_mode

Returns:

  • (Object)

    the current value of access_mode



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def access_mode
  @access_mode
end

#ambient_contextObject

Returns the value of attribute ambient_context

Returns:

  • (Object)

    the current value of ambient_context



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def ambient_context
  @ambient_context
end

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def attribute
  @attribute
end

#context_keyObject

Returns the value of attribute context_key

Returns:

  • (Object)

    the current value of context_key



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def context_key
  @context_key
end

#enclosing_nameObject

Returns the value of attribute enclosing_name

Returns:

  • (Object)

    the current value of enclosing_name



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def enclosing_name
  @enclosing_name
end

#expressionObject

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def expression
  @expression
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def kind
  @kind
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def line
  @line
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def method_name
  @method_name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



7
8
9
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7

def path
  @path
end

Instance Method Details

#contextObject



10
11
12
13
14
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 10

def context
  return "#{enclosing_name}#{method_name}" if enclosing_name && method_name

  method_name || enclosing_name
end