Sha256: 1cb3787e55dc1d860fcf18ee75108520c849ce1e55a18564bc00ee47d6a67568

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

module Tabit
  module Helper
    include ActionView::Helpers::TagHelper
    include ActionView::Helpers::UrlHelper

    def tabit(options = {}, &block)
      configuration
        .builder_class
        .new(self, options, &block).to_s
    end

    protected
      def configuration
        Tabit.configuration
      end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tabit-0.3.2 lib/tabit/helper.rb
tabit-0.3.1 lib/tabit/helper.rb
tabit-0.2.1 lib/tabit/helper.rb
tabit-0.2.0 lib/tabit/helper.rb