Sha256: ade53abf3e45e86bf0a1fd910969a9d209e24c5e151024b45b6f2109ebe5c7dc

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

module TwitterBootstrapBuilder
  module Builders
    class DropDownLinkBuilder < Base

      def to_s
        dropdown_link = DropdownLink.new(options[:text])
        dropdown_link.append template.capture(self, &block) if block
        dropdown_link.as_nav_item.to_s
      end

      def link_to(*args, &block)
        Tag.block(:li, template.link_to(*args, &block)).to_s.html_safe
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_bootstrap_builder-0.0.1 lib/twitter_bootstrap_builder/builders/drop_down_link_builder.rb