Class: PuppetStrings::Yard::Parsers::Puppet::DefinedTypeStatement
- Inherits:
-
ParameterizedStatement
- Object
- Statement
- ParameterizedStatement
- PuppetStrings::Yard::Parsers::Puppet::DefinedTypeStatement
- Defined in:
- lib/puppet-strings/yard/parsers/puppet/statement.rb
Overview
Implements the Puppet defined type statement.
Constant Summary
Constants inherited from Statement
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from ParameterizedStatement
Attributes inherited from Statement
#comments_range, #docstring, #file, #line, #source
Instance Method Summary collapse
-
#initialize(object, file) ⇒ DefinedTypeStatement
constructor
Initializes the Puppet defined type statement.
Methods inherited from Statement
#comments, #comments_hash_flag, #extract_docstring, #show
Constructor Details
#initialize(object, file) ⇒ DefinedTypeStatement
Initializes the Puppet defined type statement.
121 122 123 124 |
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 121 def initialize(object, file) super @name = object.name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
116 117 118 |
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 116 def name @name end |