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