Method: CHBuild::Config#errors
- Defined in:
- lib/chbuild/config.rb
#errors ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/chbuild/config.rb', line 46 def errors all_errors = Array.new(@errors) instance_variables.each do |var| section = instance_variable_get(var) next unless section.respond_to?(:name) && section.respond_to?(:errors) section_name = section.send(:name) section_errors = section.send(:errors) section_errors.each do |err| all_errors << "#{section_name}: #{err}" end end all_errors end |