Sha256: 3c7126bc6cf6acd3a06618dffeb90610c68d5a65a6bd2d04dec9b4665835fd4b

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

module DynamicMenu
  class Base
    def initialize(current_user)
      @current_user = current_user
      build_menu
    end
    
    def get_menu_links
      @links
    end
    private
    
    def current_user
      @current_user
    end

    def define_menu_links(args)
      if @links.nil?
      @links = args
      else
      @links.merge(args)
      end
      return @links
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynamic_menu-3.0.0.pre2 lib/dynamic_menu/base.rb