class Aureus::Components::Navigation
Public Class Methods
new() { |self| ... }
click to toggle source
# File lib/aureus/components/navigation.rb, line 4 def initialize @title = '' @buttons = Array.new yield(self) end
Public Instance Methods
render()
click to toggle source
# File lib/aureus/components/navigation.rb, line 18 def render content_tag 'div', class: 'aureus-navigation' do compact content_tag('h2', content_tag('span', @title)), content_tag('ul', compact_render(*@buttons), id: 'quicklinks') end end
title(title)
click to toggle source
# File lib/aureus/components/navigation.rb, line 10 def title(title) @title = title end