Module: SemanticNavigation::Renderers::MixIn::RenderHelpers
- Included in:
- BreadCrumb, List, TwitterBootstrap3::Breadcrumb, TwitterBootstrap3::List, TwitterBootstrap3::Tabs, TwitterBootstrap::Breadcrumb, TwitterBootstrap::List, TwitterBootstrap::Tabs
- Defined in:
- lib/semantic_navigation/renderers/mix_in/render_helpers.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/semantic_navigation/renderers/mix_in/render_helpers.rb', line 6 def self.included(base) base.send :include, InstanceMethods base.extend(ClassMethods) base.class_eval do [:navigation, :node, :leaf, :link].each do |e| style_accessor :"#{e}_active_class" => [:active], :"show_#{e}_active_class" => true, :"show_#{e}_id" => true, :"#{e}_default_classes" => [] end style_accessor menu_tag: :ul end end |