Class: Asbestos::HostTemplate

Inherits:
Object
  • Object
show all
Includes:
ClassCollection
Defined in:
lib/asbestos/host_template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassCollection

included

Constructor Details

#initialize(name, template) ⇒ HostTemplate

Returns a new instance of HostTemplate


8
9
10
11
12
13
# File 'lib/asbestos/host_template.rb', line 8

def initialize(name, template)
  @name = name
  @template = template

  self.class[name] = self
end

Instance Attribute Details

#templateObject (readonly)

Returns the value of attribute template


6
7
8
# File 'lib/asbestos/host_template.rb', line 6

def template
  @template
end