class PuppetStrings::Yard::Parsers::Puppet::FunctionStatement
Implements the Puppet
function statement.
Attributes
Public Class Methods
Source
# File lib/puppet-strings/yard/parsers/puppet/statement.rb, line 134 def initialize(object, file) super @name = object.name return unless object.respond_to? :return_type type = object.return_type return unless type @type = PuppetStrings::Yard::Util.ast_to_text(type).gsub('>> ', '') end
Initializes the Puppet
function statement. @param [Puppet::Pops::Model::FunctionDefinition] object The model object for the function statement. @param [String] file The file containing the statement.
Calls superclass method
PuppetStrings::Yard::Parsers::Puppet::ParameterizedStatement::new