Class: WordnetJapanDiagram::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CLI

Returns a new instance of CLI.



16
17
18
# File 'lib/wordnet_japan_diagram/cli.rb', line 16

def initialize(options)
  @command_options = CommandOptions.new(options: options)
end

Class Method Details

.execute(options:) ⇒ Object



11
12
13
# File 'lib/wordnet_japan_diagram/cli.rb', line 11

def execute(options:)
  new(options).execute
end

Instance Method Details

#executeObject



20
21
22
23
24
# File 'lib/wordnet_japan_diagram/cli.rb', line 20

def execute
  connect_database

  create_diagram
end