Sha256: d5e19e059447f86783e2d1a6c7149350d6fad1e7d55a4cbc96befac2e91dd345

Contents?: true

Size: 350 Bytes

Versions: 9

Compression:

Stored size: 350 Bytes

Contents

module Redcar
  class Menu
    class LazyMenu < Menu
      
      def initialize(block, text=nil)
        @text = text
        @block = block
      end
      
      def entries
        Menu::Builder.build(&@block).entries
      end
      
      def <<(*_)
        raise
      end
      
      def merge(*_)
        raise
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
redcar-0.3.8.4 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.8.3 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.8.2 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.8.1 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.8 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.7.1 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.7 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.6 plugins/application/lib/application/menu/lazy_menu.rb
redcar-0.3.5 plugins/application/lib/application/menu/lazy_menu.rb