Sha256: f0b4ca73684715f48cb33406c5fe4511afd153a6b81d643657132c75b03e0b1e
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
module Tabit module Helper include ActionView::Helpers::TagHelper include ActionView::Helpers::UrlHelper include ActionView::Helpers::CaptureHelper def tabit(clazz = '', options = {}, &block) options[:class] ||= clazz.blank? ? '' : clazz content_tag(:ul, options) do yield(configuration.builder_class.new(self)) end end protected def configuration Tabit.configuration end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tabit-0.1.2 | lib/tabit/helper.rb |
tabit-0.1.1 | lib/tabit/helper.rb |