# File lib/puppet/parameter.rb, line 164
164:         def newvalue(name, options = {}, &block)
165:             value = Value.new(name)
166:             @values[value.name] = value
167:             if value.regex?
168:                 @regexes << value
169:             else
170:                 @strings << value
171:             end
172: 
173:             options.each { |opt, arg| value.send(opt.to_s + "=", arg) }
174:             if block_given?
175:                 value.block = block
176:             else
177:                 value.call = options[:call] || :none
178:             end
179: 
180:             if block_given? and ! value.regex?
181:                 value.method ||= "set_" + value.name.to_s
182:             end
183: 
184:             value
185:         end