lib/peeky/api.rb
# Get a class renderer by :key
#
# TODO: Refactor to a configurable system
# @param key [String] key is a shortcut to a specific Peeky::Renderer that handles class_info (required)
Get a class renderer by :key
TODO: Refactor to a configurable system
Get a class renderer by : key TODO : Refactor to a configurable system
def class_renderer(key)
      case key
      when :class_debug
        Peeky::Renderer::ClassDebugRender
      when :class_interface
        Peeky::Renderer::ClassInterfaceRender
      when :class_interface_yard
        Peeky::Renderer::ClassInterfaceYardRender
      else
        raise "Unknown class renderer: #{key}"
      end
    end
def class_renderer ( key ) case key when :class_debug Peeky :: Renderer :: ClassDebugRender when :class_interface Peeky :: Renderer :: ClassInterfaceRender when :class_interface_yard Peeky :: Renderer :: ClassInterfaceYardRender else raise "Unknown class renderer: #{key}" end end
Get a class renderer by :key
TODO: Refactor to a configurable system
Get a class renderer by : key TODO : Refactor to a configurable system
key
key is a shortcut to a specific Peeky::Renderer that handles class_info (required)
key is a shortcut to a specific Peeky :: Renderer that handles class_info ( required )