Class: PuppetStrings::Yard::Parsers::Puppet::FunctionStatement
- Inherits:
-
ParameterizedStatement
- Object
- Statement
- ParameterizedStatement
- PuppetStrings::Yard::Parsers::Puppet::FunctionStatement
- Defined in:
- lib/puppet-strings/yard/parsers/puppet/statement.rb
Overview
Implements the Puppet function 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) ⇒ FunctionStatement
constructor
Initializes the Puppet function statement.
Methods inherited from Statement
#comments, #comments_hash_flag, #extract_docstring, #show
Constructor Details
#initialize(object, file) ⇒ FunctionStatement
Initializes the Puppet function statement.
141 142 143 144 |
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 141 def initialize(object, file) super(object, file) @name = object.name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
136 137 138 |
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 136 def name @name end |