Sha256: c7d4c56fd2a7e2fdabcd3f1515c6f8e289fbb2f2ef936d4b8b652bb567b1d5aa
Contents?: true
Size: 689 Bytes
Versions: 7
Compression:
Stored size: 689 Bytes
Contents
module Xcode class EnumerationProperty attr_reader :enumeration def initialize(*args) @enumeration = args.flatten.compact end def open(value) warn "Configuration property contains a value '#{value}' not within the enumeration." unless enumeration.include?(value) value end def save(value) raise "Configuration property value specified '#{value}' not within the enumeration." unless enumeration.include?(value) value end def append(original,value) warn "Overriding configuration property '#{original}' with new value '#{value}'" unless original == value save(value) end end end
Version data entries
7 entries across 7 versions & 1 rubygems