Class: Lono::Extensions::Register
- Inherits:
-
AbstractBase
- Object
- AbstractBase
- Lono::Extensions::Register
- Includes:
- Configset::EvaluateFile
- Defined in:
- lib/lono/extensions/register.rb
Instance Method Summary collapse
-
#register_extensions ⇒ Object
register_extensions and evaluate extend_with methods earlier than load_context so project helpers can override extensions.
- #run ⇒ Object
Methods included from Configset::EvaluateFile
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_extensions ⇒ Object
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 |
#run ⇒ Object
5 6 7 |
# File 'lib/lono/extensions/register.rb', line 5 def run register_extensions # evaluates extend_with end |