Class: Cuporter::ExampleSetNode

Inherits:
TagListNode show all
Defined in:
lib/cuporter/example_set_node.rb

Instance Attribute Summary

Attributes inherited from TagListNode

#tags

Attributes inherited from Node

#children, #file, #name, #number, #numerable

Instance Method Summary collapse

Methods inherited from TagListNode

#add_to_tag_nodes, #filter_child, #find_or_create_child, #has_tags?, #initialize, #merge_tag_nodes

Methods inherited from Node

#<=>, #eql?, #find, #find_by_name, #has_children?, #initialize, #name_without_title, #names, #number_all_descendants, #numerable?, #sort_all_descendants!, #total

Constructor Details

This class inherits a constructor from Cuporter::TagListNode

Instance Method Details

#add_child(node) ⇒ Object



9
10
11
12
# File 'lib/cuporter/example_set_node.rb', line 9

def add_child(node)
  node.numerable = false unless has_children? #first row ( arg list header)
  super(node)
end

#sort!Object



5
6
7
# File 'lib/cuporter/example_set_node.rb', line 5

def sort!
  # no op
end