class Trestle::Toolbar::Builder

Public Class Methods

builder_method(*methods) click to toggle source
# File lib/trestle/toolbar/builder.rb, line 26
def self.builder_method(*methods)
  self.builder_methods += methods
end
new(template) click to toggle source
# File lib/trestle/toolbar/builder.rb, line 4
def initialize(template)
  @template = template
end

Public Instance Methods

button(label, options={}, &block) click to toggle source
# File lib/trestle/toolbar/builder.rb, line 8
def button(label, options={}, &block)
  Button.new(@template, label, options, &block)
end
dropdown(label=nil, options={}, &block) click to toggle source