module Menuizer

Constants

VERSION

Public Class Methods

configure(namespace=nil) { |config_for_namespace(namespace)| ... } click to toggle source
# File lib/menuizer.rb, line 10
def configure(namespace=nil)
  yield config_for_namespace(namespace)
end
menu(namespace=nil, **data) click to toggle source

Private Class Methods

config() click to toggle source
# File lib/menuizer.rb, line 19
def config
  @config ||= {}
end
config_for_namespace(namespace) click to toggle source
# File lib/menuizer.rb, line 22
def config_for_namespace(namespace)
  config[namespace] ||= OpenStruct.new
end