lib/peeky/api.rb
# Get a method renderer by :key
#
# TODO: Refactor to a configurable system
# @param key [String] key is a shortcut to a specific Peeky::Render that handles method_info (required)
Get a method renderer by :key
TODO: Refactor to a configurable system
Get a method renderer by : key TODO : Refactor to a configurable system
def method_renderer(key)
      case key
      when :signature
        Peeky::Renderer::MethodSignatureRender
      when :signature_with_debug
        Peeky::Renderer::MethodSignatureWithDebugRender
      when :call_minimum_params
        Peeky::Renderer::MethodCallMinimumParamsRender
      else
        raise "Unknown method renderer: #{key}"
      end
    end
def method_renderer ( key ) case key when :signature Peeky :: Renderer :: MethodSignatureRender when :signature_with_debug Peeky :: Renderer :: MethodSignatureWithDebugRender when :call_minimum_params Peeky :: Renderer :: MethodCallMinimumParamsRender else raise "Unknown method renderer: #{key}" end end
Get a method renderer by :key
TODO: Refactor to a configurable system
Get a method renderer by : key TODO : Refactor to a configurable system
key
key is a shortcut to a specific Peeky::Render that handles method_info (required)
key is a shortcut to a specific Peeky :: Render that handles method_info ( required )