Class: NetConfGen::BlockContext

Inherits:
Object
  • Object
show all
Defined in:
lib/netconfgen/netconfgen.rb

Instance Method Summary collapse

Constructor Details

#initialize(blockengine) ⇒ BlockContext

Returns a new instance of BlockContext.



30
31
32
# File 'lib/netconfgen/netconfgen.rb', line 30

def initialize(blockengine)
  @blockengine = blockengine
end

Instance Method Details

#include(name) ⇒ Object



34
35
36
37
# File 'lib/netconfgen/netconfgen.rb', line 34

def include(name)
  block = @blockengine.load(name)
  return block.render
end