Sha256: 6f70767ba964347cf5e8aa1a5e6ef30b8b7c3377cf074e7712d0f61481f45483
Contents?: true
Size: 1.42 KB
Versions: 28
Compression:
Stored size: 1.42 KB
Contents
module Xcake class Configuration # This class is a proxy to the Preprocessor build # setting. It abstracts the setting of the value # for this setting and makes it easier to define # new preprocessor definitions. # class PreprocessorDefinitionsSettingProxy # the settings for the configuration this # proxy is for # # @return [Hash<String, Object>] the settings for the # proxied configuration # attr_accessor :settings # @return [String] the key for the settings where the # preprocessor definitions are kept # attr_accessor :key # @param [Hash<String, Object>] settings # the settings for the proxied configuration # # @param [String] key # the key for the settings where the preprocessor # definitions are kept # def initialize(settings, key) @settings = settings @key = key @settings[@key] ||= ["$(inherited)"] end # The subscript operator is used to define the preprocessor defination # # @param [String] key # the key for the preprocessor definition # # @param [Object] value # the value for the preprocessor definition # def []=(key, value) @settings[@key] << "#{key}=#{value}" end end end end
Version data entries
28 entries across 28 versions & 1 rubygems