Class: Lono::Extensions::Register

Inherits:
AbstractBase show all
Includes:
Configset::EvaluateFile
Defined in:
lib/lono/extensions/register.rb

Instance Method Summary collapse

Methods included from Configset::EvaluateFile

#evaluate_file

Methods inherited from AbstractBase

#initialize, #reinitialize, #template_path

Methods included from Blueprint::Root

#find_blueprint_root, #set_blueprint_root

Constructor Details

This class inherits a constructor from Lono::AbstractBase

Instance Method Details

#register_extensionsObject

register_extensions and evaluate extend_with methods earlier than load_context so project helpers can override extensions



10
11
12
13
# File 'lib/lono/extensions/register.rb', line 10

def register_extensions
  template_path = "#{Lono.config.templates_path}/#{@template}.rb"
  Lono::Extensions.new(template_path).evaluate # registers extensions
end

#runObject



5
6
7
# File 'lib/lono/extensions/register.rb', line 5

def run
  register_extensions # evaluates extend_with
end