Class: ConfigTemplates::Extensions::Include
- Inherits:
-
Object
- Object
- ConfigTemplates::Extensions::Include
- Defined in:
- lib/config_templates/extensions/include.rb
Instance Method Summary collapse
Instance Method Details
#call(context, invocation) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/config_templates/extensions/include.rb', line 3 def call(context, invocation) component = context.components.find_by_path!( invocation.args.first, context.component.source_path ) component.child! component.render end |