Sha256: 26ed2c3013a6efdc34ad9a7c3d9f70556a1b78bbaabc6aacc144c7f299ace6a5
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
require "dotremap/xml_tree" class Dotremap::Appdef include Dotremap::XmlTree AVAILABLE_OPTIONS = %i( equal prefix suffix ).freeze def initialize(appname, options) property = Dotremap::Property.new("appname", appname) add_child(property) options.each do |option, value| raise "Unavailable option: #{property}" unless AVAILABLE_OPTIONS.include?(option) property = Dotremap::Property.new(option, value) add_child(property) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dotremap-0.0.8 | lib/dotremap/appdef.rb |
dotremap-0.0.7 | lib/dotremap/appdef.rb |