Module: DataMapper::Is::Tree::ClassMethods
- Defined in:
- lib/dm-is-tree/is/tree.rb
Instance Attribute Summary collapse
-
#tree_options ⇒ Object
readonly
Returns the value of attribute tree_options.
Instance Method Summary collapse
Instance Attribute Details
#tree_options ⇒ Object (readonly)
Returns the value of attribute tree_options.
96 97 98 |
# File 'lib/dm-is-tree/is/tree.rb', line 96 def @tree_options end |
Instance Method Details
#first_root ⇒ Object
104 105 106 107 108 |
# File 'lib/dm-is-tree/is/tree.rb', line 104 def first_root = { [:child_key] => nil } = { :order => Array([:order]) }.merge() if [:order] first() end |
#roots ⇒ Object
98 99 100 101 102 |
# File 'lib/dm-is-tree/is/tree.rb', line 98 def roots = { [:child_key] => nil } = { :order => Array([:order]) }.merge() if [:order] all() end |