Class: Rviz::SubGraph

Inherits:
Graph
  • Object
show all
Defined in:
lib/rviz/graph.rb

Instance Attribute Summary collapse

Attributes inherited from Graph

#edges, #nodes, #subgraphs, #title

Instance Method Summary collapse

Methods inherited from Graph

#add, #add_edge, #add_mrecord, #add_record, #add_subgraph, #edge_attr, #graph_attr, #initialize, #link, #node, #node_attr, #output

Methods included from Helper

#attrs_to_s, #quote, #set

Constructor Details

This class inherits a constructor from Rviz::Graph

Instance Attribute Details

#nameObject

Returns the value of attribute name.



113
114
115
# File 'lib/rviz/graph.rb', line 113

def name
  @name
end

Instance Method Details

#graph_endObject



115
# File 'lib/rviz/graph.rb', line 115

def graph_end; "  }" end

#graph_startObject



114
# File 'lib/rviz/graph.rb', line 114

def graph_start; "  subgraph #{self.name} {" end