Class: Asbestos::HostTemplate
- Inherits:
-
Object
- Object
- Asbestos::HostTemplate
- Includes:
- ClassCollection
- Defined in:
- lib/asbestos/host_template.rb
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(name, template) ⇒ HostTemplate
constructor
A new instance of HostTemplate.
Methods included from ClassCollection
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
#template ⇒ Object (readonly)
Returns the value of attribute template.
6 7 8 |
# File 'lib/asbestos/host_template.rb', line 6 def template @template end |