Sha256: 9690fcf58671d205341f75810d15076ed042260cc44ee8406c9144152a7a7ded

Contents?: true

Size: 878 Bytes

Versions: 1

Compression:

Stored size: 878 Bytes

Contents

module ScaffoldMarkup
  module Helpers
    module LinkButtonHelper
      include TwitterBootstrapMarkup

      def link_button(*args, &block)
        LinkButton.new(*args, &block).html_safe
      end

      ButtonBase::TYPES.each do |type|
        define_method("link_button_#{type}") do |*args, &block|
          LinkButton.send(type, *args, &block).html_safe
        end
      end

      ButtonBase::SIZES.each do |size|
        define_method("link_button_#{size}") do |*args, &block|
          LinkButton.send(size, *args, &block).html_safe
        end
      end

      ButtonBase::TYPES.each do |type|
        ButtonBase::SIZES.each do |size|
          define_method("link_button_#{type}_#{size}") do |*args, &block|
            LinkButton.send("#{type}_#{size}", *args, &block).html_safe
          end
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scaffold_markup-0.0.1 lib/scaffold_markup/helpers/link_button_helper.rb