Sha256: 6c43377ef8c1e03294350530adfda018b73abe62d2628363817912302fa99ed6
Contents?: true
Size: 515 Bytes
Versions: 5
Compression:
Stored size: 515 Bytes
Contents
module XCodeBuildHelper class Rules def initialize @attributes = {} end def method_missing(name, *args, &block) if name.to_s.start_with? "get_" @attributes[name.to_s.gsub(/get_/, '').to_sym] elsif name.to_s.start_with? "key_" if @attributes[name.to_s.gsub(/key_/, '').to_sym] name.to_s.gsub(/key_/, '').upcase end else @attributes[name] = args[0] end end def get_attribute_list @attributes.keys end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
xcodebuild-helper-1.2.5 | lib/rules.rb |
xcodebuild-helper-1.2.3 | lib/rules.rb |
xcodebuild-helper-1.1.1 | lib/rules.rb |
xcodebuild-helper-1.1.0 | lib/rules.rb |
xcodebuild-helper-1.0.0 | lib/rules.rb |