Sha256: d703635eac03adfb94f795db3096fb85ccb85fb0ec7a3b03efa218412ec2a152
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 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 TemplateError, "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.9.0 | lib/buildmaster/templatelets/text.rb |
BuildMaster-0.9.1 | lib/buildmaster/templatelets/text.rb |