Class: WordnetJapanDiagram::DiagramCreater

Inherits:
Object
  • Object
show all
Defined in:
lib/wordnet_japan_diagram/diagram_creater.rb

Instance Method Summary collapse

Constructor Details

#initialize(command_options) ⇒ DiagramCreater

Returns a new instance of DiagramCreater.



7
8
9
10
# File 'lib/wordnet_japan_diagram/diagram_creater.rb', line 7

def initialize(command_options)
  @options = command_options.diagram_creater_options
  @graph_viz = GraphViz.new(command_options)
end

Instance Method Details

#createObject



12
13
14
15
16
# File 'lib/wordnet_japan_diagram/diagram_creater.rb', line 12

def create
  draw_diagram

  output_diagram
end