Class: TodoNext::Tree::EX

Inherits:
Node
  • Object
show all
Defined in:
lib/todo_next/tree/nodes.rb

Instance Attribute Summary

Attributes inherited from Node

#children, #parent, #text

Instance Method Summary collapse

Methods inherited from Node

#has_children?, #initialize, #make_me_a_leaf, #remove_from_parent_children

Constructor Details

This class inherits a constructor from TodoNext::Tree::Node

Instance Method Details

#example?Boolean

Returns:

  • (Boolean)


10
# File 'lib/todo_next/tree/nodes.rb', line 10

def example? ; true   end

#terminal?Boolean

Returns:

  • (Boolean)


11
# File 'lib/todo_next/tree/nodes.rb', line 11

def terminal?; children.empty?  end