Sha256: 0220fe0ffe3e84e4389ae13502a49c7650d28b88c7502cce0ea167a836874870
Contents?: true
Size: 413 Bytes
Versions: 48
Compression:
Stored size: 413 Bytes
Contents
require 'push_type/menu_builder/menu' require 'push_type/menu_builder/menu_item' require 'push_type/menu_builder/menu_renderer' require 'push_type/menu_builder/helpers' module PushType module MenuBuilder @@menus = {} def self.select(key, &block) k = key.to_sym @@menus[k] ||= PushType::MenuBuilder::Menu.new @@menus[k].build(&block) if block_given? @@menus[k] end end end
Version data entries
48 entries across 48 versions & 1 rubygems