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