Sha256: 4d84d5ccf9bf4f668fc7fee1cc4a8075d37cbe3de82328a2bba0464110d4cefd
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module BuildMaster class Text def initialize(properties) @properties = properties end def process(target, template, source) property = template.attribute_value!('property') value = @properties[property] raise TemplateException, "property value for '#{property}' not found" unless value target.add(REXML::Text.new(value)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
BuildMaster-0.8.0 | lib/buildmaster/templatelets/text.rb |
BuildMaster-0.8.1 | lib/buildmaster/templatelets/text.rb |