class Bundler::Settings::Validator
公共类方法
validate!(key, value, settings) 点击以切换源代码
# File bundler/settings/validator.rb, line 52 def self.validate!(key, value, settings) rules_to_validate = rules[key] rules_to_validate.each {|rule| rule.validate!(key, value, settings) } end
私有类方法
rule(keys, description, &blk) 点击以切换源代码
# File bundler/settings/validator.rb, line 46 def self.rule(keys, description, &blk) rule = Rule.new(keys, description, &blk) keys.each {|k| rules[k] << rule } end
rules() 点击以切换源代码
# File bundler/settings/validator.rb, line 41 def self.rules @rules ||= Hash.new {|h, k| h[k] = [] } end