Class: WordnetJapanDiagram::CommandOptions
- Inherits:
-
Object
- Object
- WordnetJapanDiagram::CommandOptions
- Defined in:
- lib/wordnet_japan_diagram/command_options.rb
Instance Method Summary collapse
- #diagram_creater_options ⇒ Object
- #graph_viz_options ⇒ Object
-
#initialize(options:) ⇒ CommandOptions
constructor
A new instance of CommandOptions.
- #wordnet_japan_db_options ⇒ Object
Constructor Details
#initialize(options:) ⇒ CommandOptions
5 6 7 |
# File 'lib/wordnet_japan_diagram/command_options.rb', line 5 def initialize(options:) = end |
Instance Method Details
#diagram_creater_options ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/wordnet_japan_diagram/command_options.rb', line 15 def { search_word: [:search_word], output_diagram_path: [:output_diagram_path], node_contents: [:node_contents], height_from_target: [:height_from_target].nil? ? nil : [:height_from_target].to_i, depth_from_target: [:depth_from_target].nil? ? nil : [:depth_from_target].to_i } end |
#graph_viz_options ⇒ Object
25 26 27 28 29 |
# File 'lib/wordnet_japan_diagram/command_options.rb', line 25 def { rankdir: [:graph_rankdir].to_sym } end |
#wordnet_japan_db_options ⇒ Object
9 10 11 12 13 |
# File 'lib/wordnet_japan_diagram/command_options.rb', line 9 def { database: [:wordnet_japan_db_file_path] } end |