Sha256: cb20ba8ea96e0ea3e47e491beb8bbe1461d1f5cee0941729533752500fedb1e6

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

# -*- encoding : utf-8 -*-
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

3 entries across 3 versions & 1 rubygems

Version Path
tabit-0.4.0 lib/tabit/helper.rb
tabit-0.3.4 lib/tabit/helper.rb
tabit-0.3.3 lib/tabit/helper.rb