Class: Twb::Util::JoinTree
- Inherits:
-
Object
- Object
- Twb::Util::JoinTree
- Defined in:
- lib/twb/util/joinutilities.rb
Overview
class JoinTablePair
Instance Attribute Summary collapse
-
#maxdepth ⇒ Object
readonly
Returns the value of attribute maxdepth.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #add(from, to) ⇒ Object
-
#initialize ⇒ JoinTree
constructor
A new instance of JoinTree.
Constructor Details
#initialize ⇒ JoinTree
Returns a new instance of JoinTree.
40 41 42 43 |
# File 'lib/twb/util/joinutilities.rb', line 40 def initialize @root = nil @maxdepth = 0 end |
Instance Attribute Details
#maxdepth ⇒ Object (readonly)
Returns the value of attribute maxdepth.
39 40 41 |
# File 'lib/twb/util/joinutilities.rb', line 39 def maxdepth @maxdepth end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
39 40 41 |
# File 'lib/twb/util/joinutilities.rb', line 39 def root @root end |
Instance Method Details
#add(from, to) ⇒ Object
44 45 46 |
# File 'lib/twb/util/joinutilities.rb', line 44 def add from, to puts "abc" end |