Class: ConfigTemplates::Extensions::Include

Inherits:
Object
  • Object
show all
Defined in:
lib/config_templates/directives/include.rb

Instance Method Summary collapse

Instance Method Details

#call(context, invocation) ⇒ Object



3
4
5
6
7
# File 'lib/config_templates/directives/include.rb', line 3

def call(context, invocation)
  component = context.components.find_by_path! invocation.args.first
  component.child!
  component.render
end