def render_with(border_class, renderer_type=(not_set=true), options={}, &block)
      unless not_set
        if renderer_type.respond_to?(:to_hash)
          options = renderer_type
        else
          options[:renderer] = renderer_type
        end
      end

      Renderer.render_with(border_class, self, options, &block)
    end
def render_with(border_class, renderer_type=(not_set=true), options={}, &block)
      unless not_set
        if renderer_type.respond_to?(:to_hash)
          options = renderer_type
        else
          options[:renderer] = renderer_type
        end
      end

      Renderer.render_with(border_class, self, options, &block)
    end
Render a given table using custom border class.

 @param [TTY::Table::Border] border_class

 @param [Symbol] renderer_type

 @param [Hash] options

 @yield [renderer]

 @yieldparam [TTY::Table::Renderer] renderer
   the renderer for the table

 @return [String]

 @api public