module Gugl::Search::Displayers::DisplayerMapper

Constants

DEFAULT_DISPLAYER
DISPLAYERS

Public Instance Methods

[](key) click to toggle source
# File lib/search/displayers/displayer_mapper.rb, line 17
def [](key)
  if key == :default
    DISPLAYERS[DEFAULT_DISPLAYER].call
  else
    DISPLAYERS[key].call
  end
end