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

Version Path
push_type_core-0.12.1 lib/push_type/menu_builder.rb
push_type_core-0.12.0 lib/push_type/menu_builder.rb
push_type_core-0.12.0.beta.1 lib/push_type/menu_builder.rb
push_type_core-0.11.2 lib/push_type/menu_builder.rb
push_type_core-0.11.1 lib/push_type/menu_builder.rb
push_type_core-0.11.0.beta.2 lib/push_type/menu_builder.rb
push_type_core-0.11.0.beta.1 lib/push_type/menu_builder.rb
push_type_core-0.10.4 lib/push_type/menu_builder.rb
push_type_core-0.10.3 lib/push_type/menu_builder.rb
push_type_core-0.10.2 lib/push_type/menu_builder.rb
push_type_core-0.10.1 lib/push_type/menu_builder.rb
push_type_core-0.10.0 lib/push_type/menu_builder.rb
push_type_core-0.10.0.beta.5 lib/push_type/menu_builder.rb
push_type_core-0.10.0.beta.3 lib/push_type/menu_builder.rb
push_type_core-0.9.5 lib/push_type/menu_builder.rb
push_type_core-0.9.3 lib/push_type/menu_builder.rb
push_type_core-0.9.2 lib/push_type/menu_builder.rb
push_type_core-0.9.1 lib/push_type/menu_builder.rb
push_type_core-0.9.0 lib/push_type/menu_builder.rb
push_type_core-0.9.0.beta.4 lib/push_type/menu_builder.rb