Module: EasyTable::ViewExt::Tag
- Defined in:
- lib/easy-table/tag.rb
Instance Method Summary collapse
Instance Method Details
#do_tag(*args, &block) ⇒ Object
7 8 9 |
# File 'lib/easy-table/tag.rb', line 7 def do_tag *args, &block indent_tag 0, *args, &block end |
#indent(lv) ⇒ Object
11 12 13 |
# File 'lib/easy-table/tag.rb', line 11 def indent(lv) "\n" + (" " * lv) end |
#indent_tag(lv, *args, &block) ⇒ Object
3 4 5 |
# File 'lib/easy-table/tag.rb', line 3 def indent_tag lv, *args, &block (indent(lv) + content_tag(*args, &block)).html_safe end |