Module: MongoTree::Strategies::FullTreeRoot::InstanceMethods

Defined in:
lib/mongo_tree/strategies/full_tree_root.rb

Instance Method Summary collapse

Instance Method Details

#ancestorsObject



42
43
44
# File 'lib/mongo_tree/strategies/full_tree_root.rb', line 42

def ancestors
  []
end

#depthObject



30
31
32
# File 'lib/mongo_tree/strategies/full_tree_root.rb', line 30

def depth
  0
end

#parentObject



34
35
36
# File 'lib/mongo_tree/strategies/full_tree_root.rb', line 34

def parent
  nil
end

#siblingsObject



38
39
40
# File 'lib/mongo_tree/strategies/full_tree_root.rb', line 38

def siblings
  []
end