Sha256: b93b92454b61389043c4f573e38c8863373f36d57ec0880d35c1265e11014417

Contents?: true

Size: 375 Bytes

Versions: 40

Compression:

Stored size: 375 Bytes

Contents

module Admix
  module Navigation
    class Menu
      attr_accessor :url, :title, :key, :icon, :parent, :children, :can_render

      def initialize
        @children = []
      end

      def submenu
        submenu = Admix::Navigation::Menu.new
        submenu.parent = self

        yield submenu if block_given?

        @children << submenu
      end

    end
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
mix-rails-0.26.3 admix/lib/admix/navigation/menu.rb
admix-0.26.3 lib/admix/navigation/menu.rb
mix-rails-0.26.2 admix/lib/admix/navigation/menu.rb
admix-0.26.2 lib/admix/navigation/menu.rb
mix-rails-0.26.1 admix/lib/admix/navigation/menu.rb
admix-0.26.1 lib/admix/navigation/menu.rb
mix-rails-0.26.0 admix/lib/admix/navigation/menu.rb
admix-0.26.0 lib/admix/navigation/menu.rb
mix-rails-0.25.1 admix/lib/admix/navigation/menu.rb
admix-0.25.1 lib/admix/navigation/menu.rb
mix-rails-0.25.0 admix/lib/admix/navigation/menu.rb
admix-0.25.0 lib/admix/navigation/menu.rb
mix-rails-0.24.1 admix/lib/admix/navigation/menu.rb
admix-0.24.1 lib/admix/navigation/menu.rb
mix-rails-0.24.0 admix/lib/admix/navigation/menu.rb
admix-0.24.0 lib/admix/navigation/menu.rb
mix-rails-0.23.1 admix/lib/admix/navigation/menu.rb
admix-0.23.1 lib/admix/navigation/menu.rb
mix-rails-0.23.0 admix/lib/admix/navigation/menu.rb
admix-0.23.0 lib/admix/navigation/menu.rb