Method: Cukedep::FeatureModel#draw_node
- Defined in:
- lib/cukedep/feature-model.rb
#draw_node(anIO, aFeatureFile, anIndex) ⇒ Object
Draw a refinement node in DOT format
195 196 197 198 199 200 201 202 203 204 |
# File 'lib/cukedep/feature-model.rb', line 195 def draw_node(anIO, aFeatureFile, anIndex) basename = File.basename(aFeatureFile.filepath, '.feature') its_feature = aFeatureFile.feature if its_feature.anonymous? id_suffix = '' else id_suffix = " -- #{its_feature.identifier}" end anIO.puts %Q( node_#{anIndex} [label = "#{basename}#{id_suffix}"];) end |