class Dotremap::Appdef
Constants
- AVAILABLE_OPTIONS
Public Class Methods
new(appname, options)
click to toggle source
# File lib/dotremap/appdef.rb, line 12 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