Class: Blueprint::Generator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/blueprint/generator/base.rb,
lib/blueprint/generator/base/template_rendering.rb

Direct Known Subclasses

RailsApp

Defined Under Namespace

Classes: TemplateRendering

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.


6
7
8
# File 'lib/blueprint/generator/base.rb', line 6

def config
  @config
end

#nameObject (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_pathObject


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