Class: MetzScan::Analyzers::ImplicitContextPressure::AmbientContextCollector::Reference
- Inherits:
-
Struct
- Object
- Struct
- MetzScan::Analyzers::ImplicitContextPressure::AmbientContextCollector::Reference
- Defined in:
- lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb
Instance Attribute Summary collapse
-
#access_mode ⇒ Object
Returns the value of attribute access_mode.
-
#ambient_context ⇒ Object
Returns the value of attribute ambient_context.
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#context_key ⇒ Object
Returns the value of attribute context_key.
-
#enclosing_name ⇒ Object
Returns the value of attribute enclosing_name.
-
#expression ⇒ Object
Returns the value of attribute expression.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#line ⇒ Object
Returns the value of attribute line.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#access_mode ⇒ Object
Returns the value of attribute 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_context ⇒ Object
Returns the value of attribute 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 |
#attribute ⇒ Object
Returns the value of attribute attribute
7 8 9 |
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7 def attribute @attribute end |
#context_key ⇒ Object
Returns the value of attribute 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_name ⇒ Object
Returns the value of attribute 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 |
#expression ⇒ Object
Returns the value of attribute expression
7 8 9 |
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7 def expression @expression end |
#kind ⇒ Object
Returns the value of attribute kind
7 8 9 |
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7 def kind @kind end |
#line ⇒ Object
Returns the value of attribute line
7 8 9 |
# File 'lib/metz_scan/analyzers/implicit_context_pressure/ambient_context_reference.rb', line 7 def line @line end |
#method_name ⇒ Object
Returns the value of attribute 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 |
#path ⇒ Object
Returns the value of attribute 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
#context ⇒ Object
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 |