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