Class: Cycromatic::Complexity
- Inherits:
-
Object
- Object
- Cycromatic::Complexity
- Defined in:
- lib/cycromatic/complexity.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(type:, node:, value:) ⇒ Complexity
constructor
A new instance of Complexity.
Constructor Details
#initialize(type:, node:, value:) ⇒ Complexity
Returns a new instance of Complexity.
7 8 9 10 11 |
# File 'lib/cycromatic/complexity.rb', line 7 def initialize(type:, node:, value:) @type = type @node = node @value = value end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
4 5 6 |
# File 'lib/cycromatic/complexity.rb', line 4 def node @node end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/cycromatic/complexity.rb', line 3 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/cycromatic/complexity.rb', line 5 def value @value end |