Method: UCD::Formatter::Base#format

Defined in:
lib/ucd/formatter/base.rb

#format(node) ⇒ Object



41
42
43
44
45
46
47
48
49
50
# File 'lib/ucd/formatter/base.rb', line 41

def format(node)
  case node
  when Node::Field             then format_field(node)
  when Node::Method            then format_method(node)
  when Node::Relationship      then format_relationship(node)
  when Node::ClassRelationship then format_class_relationship(node)
  when Node::ClassNode         then format_class(node)
  when Node::Document          then format_document(node)
  end
end