# File lib/rbatch/config.rb, line 17 def[](key) if @hash.nil? raise RBatch::ConfigException, "Config file \"#{@path}\" does not exist" end if @hash[key].nil? if key.class == Symbol raise RBatch::ConfigException, "Value of key(:#{key} (Symbol)) is nil. By any chance, dou you mistake key class Symbol for String?" elsif key.class == String raise RBatch::ConfigException, "Value of key(\"#{key}\" (String)) is nil" else raise RBatch::ConfigException, "Value of key(#{key}) is nil." end else @hash[key] end end
# File lib/rbatch/config.rb, line 34 def exist? ; ! @hash.nil? ; end
Generated with the Darkfish Rdoc Generator 2.