Class: PuppetStrings::Yard::Parsers::Puppet::PlanStatement

Inherits:
ParameterizedStatement show all
Defined in:
lib/puppet-strings/yard/parsers/puppet/statement.rb

Overview

Implements the Puppet plan statement.

Constant Summary

Constants inherited from Statement

Statement::COMMENT_REGEX

Instance Attribute Summary collapse

Attributes inherited from ParameterizedStatement

#parameters

Attributes inherited from Statement

#comments_range, #docstring, #file, #line, #source

Instance Method Summary collapse

Methods inherited from Statement

#comments, #comments_hash_flag, #extract_docstring, #show

Constructor Details

#initialize(object, file) ⇒ PlanStatement

Initializes the Puppet plan statement.

Parameters:

  • object (Puppet::Pops::Model::PlanDefinition)

    The model object for the plan statement.

  • file (String)

    The file containing the statement.



162
163
164
165
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 162

def initialize(object, file)
  super(object, file)
  @name = object.name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



157
158
159
# File 'lib/puppet-strings/yard/parsers/puppet/statement.rb', line 157

def name
  @name
end