Sha256: b0409a07f21bfb54b2128efd5dc5e129ca86c0c47ac37235262a22f277ef35ee

Contents?: true

Size: 442 Bytes

Versions: 140

Compression:

Stored size: 442 Bytes

Contents

# The parameters we stick in Resources.
class Puppet::Parser::Resource::Param
  include Puppet::Util
  include Puppet::Util::Errors
  include Puppet::Util::MethodHelper

  attr_accessor :name, :value, :source, :add, :file, :line

  def initialize(hash)
    set_options(hash)
    requiredopts(:name)
    @name = @name.intern
  end

  def line_to_i
    line ? Integer(line) : nil
  end

  def to_s
    "#{self.name} => #{self.value}"
  end
end

Version data entries

140 entries across 140 versions & 2 rubygems

Version Path
puppet-5.5.20 lib/puppet/parser/resource/param.rb
puppet-5.5.20-x86-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.20-x64-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.20-universal-darwin lib/puppet/parser/resource/param.rb
puppet-5.5.19 lib/puppet/parser/resource/param.rb
puppet-5.5.19-x86-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.19-x64-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.19-universal-darwin lib/puppet/parser/resource/param.rb
puppet-5.5.18 lib/puppet/parser/resource/param.rb
puppet-5.5.18-x86-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.18-x64-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.18-universal-darwin lib/puppet/parser/resource/param.rb
puppet-5.5.17-x86-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.17 lib/puppet/parser/resource/param.rb
puppet-5.5.17-x64-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.17-universal-darwin lib/puppet/parser/resource/param.rb
puppet-5.5.16 lib/puppet/parser/resource/param.rb
puppet-5.5.16-x86-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.16-x64-mingw32 lib/puppet/parser/resource/param.rb
puppet-5.5.16-universal-darwin lib/puppet/parser/resource/param.rb