Class: PuppetGenerator::Definition
- Inherits:
-
Object
- Object
- PuppetGenerator::Definition
- Defined in:
- lib/puppet_generator/definition.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(file_name, text) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(file_name, text) ⇒ Definition
Returns a new instance of Definition.
5 6 7 8 |
# File 'lib/puppet_generator/definition.rb', line 5 def initialize( file_name, text ) @file_name = file_name @text = text end |
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
3 4 5 |
# File 'lib/puppet_generator/definition.rb', line 3 def file_name @file_name end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/puppet_generator/definition.rb', line 3 def text @text end |