Sha256: 80f2a4004d096e886b84e0232f83fca7a73d493589052caa30e4c6236f062ddf

Contents?: true

Size: 572 Bytes

Versions: 48

Compression:

Stored size: 572 Bytes

Contents

module PushType
  module MenuBuilder
    module Dsl

      class Menu
        class << self
          def build(menu, &block)
            @menu = menu
            instance_exec(&block)
          end

          def item(key, &block)
            @menu.item(key, &block)
          end

          def element(sym)
            @menu.element = sym
          end

          def html_options(hash)
            @menu.html_options.merge!(hash)
          end

          def active_class(val)
            @menu.active_class = val
          end
        end
      end

    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/dsl/menu.rb
push_type_core-0.12.0 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.12.0.beta.1 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.11.2 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.11.1 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.11.0.beta.2 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.11.0.beta.1 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.10.4 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.10.3 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.10.2 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.10.1 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.10.0 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.10.0.beta.5 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.10.0.beta.3 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.9.5 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.9.3 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.9.2 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.9.1 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.9.0 lib/push_type/menu_builder/dsl/menu.rb
push_type_core-0.9.0.beta.4 lib/push_type/menu_builder/dsl/menu.rb