def with_file(name, *args)
      logger.debug "with_file(#{name.inspect}, #{args.inspect})"
      result = args.inject(config_for(name)) { |v, i|
        logger.debug "v = #{v.inspect}, i = #{i.inspect}"
        case v
          when Hash
            v[i.to_s]
          when Array
            i.is_a?(Integer) ? v[i] : nil
          else
            nil
        end
      }
      logger.debug "with_file(#{name.inspect}, #{args.inspect}) => #{result.inspect}"
      result
    end
def with_file(name, *args)
      logger.debug "with_file(#{name.inspect}, #{args.inspect})"
      result = args.inject(config_for(name)) { |v, i|
        logger.debug "v = #{v.inspect}, i = #{i.inspect}"
        case v
          when Hash
            v[i.to_s]
          when Array
            i.is_a?(Integer) ? v[i] : nil
          else
            nil
        end
      }
      logger.debug "with_file(#{name.inspect}, #{args.inspect}) => #{result.inspect}"
      result
    end
def with_file ( name , * args ) logger . debug "with_file(#{name.inspect}, #{args.inspect})" result = args . inject ( config_for ( name ) ) { | v , i | logger . debug "v = #{v.inspect}, i = #{i.inspect}" case v when Hash v [ i . to_s ] when Array i . is_a? ( Integer ) ? v [ i ] : nil else nil end } logger . debug "with_file(#{name.inspect}, #{args.inspect}) => #{result.inspect}" result end
Get the value specified by the args, in the file specified by th name
Get the value specified by the args in the file specified by th name