Class: ArchUnit::Metrics::Extraction::MethodInfo
- Inherits:
-
Data
- Object
- Data
- ArchUnit::Metrics::Extraction::MethodInfo
- Defined in:
- lib/archunit/metrics/extraction/metric_info.rb
Overview
One method and the instance fields it reads or writes.
Instance Attribute Summary collapse
-
#accessed_fields ⇒ Object
readonly
Returns the value of attribute accessed_fields.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, accessed_fields: []) ⇒ MethodInfo
constructor
A new instance of MethodInfo.
Constructor Details
#initialize(name:, accessed_fields: []) ⇒ MethodInfo
Returns a new instance of MethodInfo.
54 55 56 57 58 |
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 54 def initialize(name:, accessed_fields: []) name = immutable_string(name, :name) accessed_fields = immutable_names(accessed_fields, :accessed_fields) super end |
Instance Attribute Details
#accessed_fields ⇒ Object (readonly)
Returns the value of attribute accessed_fields
51 52 53 |
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 51 def accessed_fields @accessed_fields end |
#name ⇒ Object (readonly)
Returns the value of attribute name
51 52 53 |
# File 'lib/archunit/metrics/extraction/metric_info.rb', line 51 def name @name end |