Class: PuppetStrings::Yard::Parsers::Puppet::ParameterizedStatement
- Inherits:
-
Statement
- Object
- Statement
- PuppetStrings::Yard::Parsers::Puppet::ParameterizedStatement
- Defined in:
- lib/puppet-strings/yard/parsers/puppet/statement.rb
Overview
Implements a parameterized statement (a statement that takes parameters).
Direct Known Subclasses
ClassStatement, DefinedTypeStatement, FunctionStatement, PlanStatement
Defined Under Namespace
Classes: Parameter
Constant Summary
Constants inherited from Statement
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Attributes inherited from Statement
#comments_range, #docstring, #file, #line, #source
Instance Method Summary collapse
-
#initialize(object, file) ⇒ ParameterizedStatement
constructor
Initializes the parameterized statement.
Methods inherited from Statement
#comments, #comments_hash_flag, #extract_docstring, #show
Constructor Details
#initialize(object, file) ⇒ ParameterizedStatement
Initializes the parameterized statement.
94 95 96 97 |
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 94 def initialize(object, file) super @parameters = object.parameters.map { |parameter| Parameter.new(parameter) } end |
Instance Attribute Details
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
89 90 91 |
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 89 def parameters @parameters end |