Class: Opencdd::RelationTree
- Inherits:
-
Object
- Object
- Opencdd::RelationTree
- Defined in:
- lib/opencdd/relation_tree.rb
Defined Under Namespace
Classes: Node
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
Instance Method Summary collapse
- #for(root = nil, max_depth: 10) ⇒ Object
-
#initialize(database) ⇒ RelationTree
constructor
A new instance of RelationTree.
Constructor Details
#initialize(database) ⇒ RelationTree
Returns a new instance of RelationTree.
25 26 27 |
# File 'lib/opencdd/relation_tree.rb', line 25 def initialize(database) @database = database end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
23 24 25 |
# File 'lib/opencdd/relation_tree.rb', line 23 def database @database end |