class TwitterBootstrap::ButtonGroupBuilder
Public Class Methods
new(id,view_context)
click to toggle source
# File lib/twitter_bootstrap_helpers/button_group_builder.rb, line 8 def initialize(id,view_context) @id = id @view_context = view_context @buttons = "" end
Public Instance Methods
build(block)
click to toggle source
# File lib/twitter_bootstrap_helpers/button_group_builder.rb, line 14 def build(block) block.call(self) @view_context.content_tag(:div, @buttons.html_safe, class: 'btn-group',id: @id); end