Class: Reek::SmellDetectors::NestedIterators::Iterator
- Inherits:
-
Struct
- Object
- Struct
- Reek::SmellDetectors::NestedIterators::Iterator
- Defined in:
- lib/reek/smell_detectors/nested_iterators.rb
Overview
Struct for conveniently associating iterators with their depth (that is, their nesting).
Instance Attribute Summary collapse
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#exp ⇒ Object
Returns the value of attribute exp.
Instance Method Summary collapse
Instance Attribute Details
#depth ⇒ Object
Returns the value of attribute depth
15 16 17 |
# File 'lib/reek/smell_detectors/nested_iterators.rb', line 15 def depth @depth end |
#exp ⇒ Object
Returns the value of attribute exp
15 16 17 |
# File 'lib/reek/smell_detectors/nested_iterators.rb', line 15 def exp @exp end |
Instance Method Details
#line ⇒ Object
16 17 18 |
# File 'lib/reek/smell_detectors/nested_iterators.rb', line 16 def line exp.line end |