Class: NetConfGen::BlockContext
- Inherits:
-
Object
- Object
- NetConfGen::BlockContext
- Defined in:
- lib/netconfgen/netconfgen.rb
Instance Method Summary collapse
- #include(name) ⇒ Object
-
#initialize(blockengine) ⇒ BlockContext
constructor
A new instance of BlockContext.
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 |