Class: NavigatorRails::Decorators::Link

Inherits:
Object
  • Object
show all
Includes:
Generic
Defined in:
lib/navigator_rails/decorators/link.rb

Instance Attribute Summary

Attributes included from Generic

#type

Instance Method Summary collapse

Methods included from Generic

#child_count, #children, #children_except, #children_of, #draw, #draw_children, #has_visible_children, included, #resource

Instance Method Details

#templateObject



5
6
7
8
9
# File 'lib/navigator_rails/decorators/link.rb', line 5

def template
  <<-LINK_DECORATION.strip_heredoc
    <li class="<%= resource.active %>"><%= resource.content %></li>
  LINK_DECORATION
end