Sha256: 2bd90dc1653369ba000bde83184f8f0e690452ab67ea7bf79c572cf129c097f2

Contents?: true

Size: 699 Bytes

Versions: 6

Compression:

Stored size: 699 Bytes

Contents

module SuperTable
  module ViewHelpers

    def td(*args, &block)
      content_tag(:td, *args, &block)
    end

    def tr(*args, &block)
      content_tag(:tr, *args, &block)
    end

    def th(*args, &block)
      content_tag(:th, *args, &block)
    end

    def strong(*args, &block)
      content_tag(:strong, *args, &block)
    end

    def div(*args, &block)
      content_tag(:div, *args, &block)
    end

    def small(*args, &block)
      content_tag(:small, *args, &block)
    end

    def span(*args, &block)
      content_tag(:span, *args, &block)
    end

    def self.included(base)
      base.include ::ActionView::Context
      base.include ::ActionView::Helpers
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
super_tools-0.0.9 lib/super_table/view_helpers.rb
super_tools-0.0.8 lib/super_table/view_helpers.rb
super_tools-0.0.7 lib/super_table/view_helpers.rb
super_tools-0.0.6 lib/super_table/view_helpers.rb
super_tools-0.0.5 lib/super_table/view_helpers.rb
super_tools-0.0.4 lib/super_table/view_helpers.rb