Sha256: 27c0764ccfa588ef3d281129e4515686dd1644b2b1e48e834a0cab03f96f017f

Contents?: true

Size: 448 Bytes

Versions: 2

Compression:

Stored size: 448 Bytes

Contents

module TwitterBootstrapBuilder
  module Builders
    class LinkButtonBuilder < Base

      def to_s
        link_button = block ? LinkButton.new(*options[:args], &Proc.new {}) : LinkButton.new(*options[:args])
        link_button.send(options[:type]) if options[:type]
        link_button.send(options[:size]) if options[:size]
        link_button.append template.capture(self, &block) if block
        link_button.to_s
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twitter_bootstrap_builder-0.0.8 lib/twitter_bootstrap_builder/builders/link_button_builder.rb
twitter_bootstrap_builder-0.0.7 lib/twitter_bootstrap_builder/builders/link_button_builder.rb