Class: Blueprint::Generator::Base
- Inherits:
-
Object
- Object
- Blueprint::Generator::Base
- Defined in:
- lib/blueprint/generator/base.rb,
lib/blueprint/generator/base/template_rendering.rb
Direct Known Subclasses
Defined Under Namespace
Classes: TemplateRendering
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:) ⇒ Base
constructor
A new instance of Base.
- #run! ⇒ Object
Constructor Details
#initialize(name:) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/blueprint/generator/base.rb', line 8 def initialize(name:) @name = name @config = {} end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/blueprint/generator/base.rb', line 6 def config @config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/blueprint/generator/base.rb', line 6 def name @name end |
Class Method Details
.template_path ⇒ Object
18 19 20 |
# File 'lib/blueprint/generator/base.rb', line 18 def self.template_path '' end |
Instance Method Details
#run! ⇒ Object
13 14 15 16 |
# File 'lib/blueprint/generator/base.rb', line 13 def run! ask_questions execute end |