Class: Avm::Templates::Directory

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/templates/directory.rb

Defined Under Namespace

Classes: TemplateNode

Constant Summary collapse

TEMPLATE_EXTNAME =
'.template'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Directory



12
13
14
# File 'lib/avm/templates/directory.rb', line 12

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/avm/templates/directory.rb', line 10

def path
  @path
end

Instance Method Details

#apply(variables_source, directory) ⇒ Object



16
17
18
# File 'lib/avm/templates/directory.rb', line 16

def apply(variables_source, directory)
  TemplateNode.new(self, '.', directory, variables_source).apply
end