Class: CycleDetector::Node
- Inherits:
-
Object
- Object
- CycleDetector::Node
- Defined in:
- lib/kwala/lib/cycle_detector.rb
Constant Summary collapse
- DONE =
"DONE"- INPROGRESS =
"INPROGRESS"- UNVISITED =
"UNVISITED"
Instance Attribute Summary collapse
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(name = self.object_id) ⇒ Node
constructor
A new instance of Node.
- #reset ⇒ Object
Constructor Details
Instance Attribute Details
#edges ⇒ Object
Returns the value of attribute edges.
221 222 223 |
# File 'lib/kwala/lib/cycle_detector.rb', line 221 def edges @edges end |
#name ⇒ Object
Returns the value of attribute name.
221 222 223 |
# File 'lib/kwala/lib/cycle_detector.rb', line 221 def name @name end |
#state ⇒ Object
Returns the value of attribute state.
221 222 223 |
# File 'lib/kwala/lib/cycle_detector.rb', line 221 def state @state end |
Instance Method Details
#reset ⇒ Object
229 230 231 |
# File 'lib/kwala/lib/cycle_detector.rb', line 229 def reset @state = UNVISITED end |