Class: Lono::Template::Base

Inherits:
Object
  • Object
show all
Includes:
Blueprint::Root
Defined in:
lib/lono/template/base.rb

Direct Known Subclasses

Dsl, Erb

Instance Method Summary collapse

Methods included from Blueprint::Root

#bundler_groups, #find_blueprint_root, #require_bundle_gems, #set_blueprint_root

Constructor Details

#initialize(blueprint, options = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
10
11
# File 'lib/lono/template/base.rb', line 5

def initialize(blueprint, options={})
  @blueprint, @options = blueprint, options
  @template = @options[:template] || @blueprint
  Lono::ProjectChecker.check
  set_blueprint_root(@blueprint)
  Lono::ProjectChecker.empty_templates
end