Class: KStarter::Questions::CliGem
- Inherits:
-
BaseGem
- Object
- BaseQuestion
- BaseGem
- KStarter::Questions::CliGem
- Defined in:
- lib/k_starter/questions/gem.rb
Overview
Ask code generations for a new Ruby command line GEM project.
Instance Attribute Summary
Attributes inherited from BaseGem
Attributes inherited from BaseQuestion
#actor, #description, #github_key, #klue_template_active, #klue_template_name, #name, #problem, #root_path, #solution, #story_active, #sub_path, #type, #user_story, #variant
Instance Method Summary collapse
- #default_exe ⇒ Object
-
#initialize(**args) ⇒ CliGem
constructor
A new instance of CliGem.
Methods inherited from BaseGem
#ask_questions, #to_dom, #to_h
Methods inherited from BaseQuestion
#ask_actor, #ask_description, #ask_github_key, #ask_klue_template_active?, #ask_klue_template_name, #ask_problem, #ask_root_path, #ask_solution, #ask_story_active?, #ask_sub_path, #ask_user_story, #default_klue_template_active, #default_questions, #default_story_active, #infer_klue_template_name, #klue_template_questions, #question, #show_story, #story_questions, #to_h
Methods included from TtyHelpers
#command, #config, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(**args) ⇒ CliGem
Returns a new instance of CliGem.
122 123 124 125 |
# File 'lib/k_starter/questions/gem.rb', line 122 def initialize(**args) args = { variant: :cli }.merge(args) super(**args) end |
Instance Method Details
#default_exe ⇒ Object
127 128 129 |
# File 'lib/k_starter/questions/gem.rb', line 127 def default_exe @exe = true if @exe.nil? end |