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
dropdown(label=nil, options={}, &block)
click to toggle source
# File lib/trestle/toolbar/builder.rb, line 16 def dropdown(label=nil, options={}, &block) Dropdown.new(@template, label, options, &block) end
link(label, instance_or_url={}, options={}, &block)
click to toggle source
# File lib/trestle/toolbar/builder.rb, line 12 def link(label, instance_or_url={}, options={}, &block) Link.new(@template, label, instance_or_url, options, &block) end