Module: SuperTable::ViewHelpers
Class Method Summary collapse
Instance Method Summary collapse
- #del(*args, &block) ⇒ Object
- #div(*args, &block) ⇒ Object
- #small(*args, &block) ⇒ Object
- #span(*args, &block) ⇒ Object
- #strong(*args, &block) ⇒ Object
- #td(*args, &block) ⇒ Object
- #th(*args, &block) ⇒ Object
- #tr(*args, &block) ⇒ Object
Class Method Details
.included(base) ⇒ Object
36 37 38 39 |
# File 'lib/super_table/view_helpers.rb', line 36 def self.included(base) base.include ::ActionView::Context base.include ::ActionView::Helpers end |
Instance Method Details
#del(*args, &block) ⇒ Object
28 29 30 |
# File 'lib/super_table/view_helpers.rb', line 28 def del(*args, &block) content_tag(:del, *args, &block) end |
#div(*args, &block) ⇒ Object
20 21 22 |
# File 'lib/super_table/view_helpers.rb', line 20 def div(*args, &block) content_tag(:div, *args, &block) end |
#small(*args, &block) ⇒ Object
24 25 26 |
# File 'lib/super_table/view_helpers.rb', line 24 def small(*args, &block) content_tag(:small, *args, &block) end |
#span(*args, &block) ⇒ Object
32 33 34 |
# File 'lib/super_table/view_helpers.rb', line 32 def span(*args, &block) content_tag(:span, *args, &block) end |
#strong(*args, &block) ⇒ Object
16 17 18 |
# File 'lib/super_table/view_helpers.rb', line 16 def strong(*args, &block) content_tag(:strong, *args, &block) end |
#td(*args, &block) ⇒ Object
4 5 6 |
# File 'lib/super_table/view_helpers.rb', line 4 def td(*args, &block) content_tag(:td, *args, &block) end |
#th(*args, &block) ⇒ Object
12 13 14 |
# File 'lib/super_table/view_helpers.rb', line 12 def th(*args, &block) content_tag(:th, *args, &block) end |
#tr(*args, &block) ⇒ Object
8 9 10 |
# File 'lib/super_table/view_helpers.rb', line 8 def tr(*args, &block) content_tag(:tr, *args, &block) end |