class Aureus::Components::Toolbar

Public Class Methods

new(title) { |self| ... } click to toggle source
# File lib/aureus/components/toolbar.rb, line 4
def initialize(title)
  @title = title
  @left = ToolbarSection.new 'left'
  @right = ToolbarSection.new 'right'
  yield(self)
end

Public Instance Methods

left() { |left| ... } click to toggle source
# File lib/aureus/components/toolbar.rb, line 11
def left
  yield @left
end
render() click to toggle source
# File lib/aureus/components/toolbar.rb, line 19
def render
  content_tag 'div', { class: 'aureus-toolbar' } do
    compact content_tag('h1', @title), @left.render, @right.render
  end
end
right() { |right| ... } click to toggle source
# File lib/aureus/components/toolbar.rb, line 15
def right
  yield @right
end