Sha256: 9c8dfd215139404af9ccf4b157ad14ed4778e017513915eb70dba339afeaaa36
Contents?: true
Size: 730 Bytes
Versions: 1
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true module AsanaExceptionNotifier # helper methods that use Heredoc syntax module HeredocHelper module_function def link_helper(link) <<-HTML <a href="javascript:void(0)" onclick="AjaxExceptionNotifier.hideAllAndToggle('#{link.downcase}')">#{link.camelize}</a> HTML end # Gets a bidimensional array and create a table. # The first array is used as label. # def mount_table(array, options = {}) header = array.extract_options! <<-HTML <table #{hash_to_html_attributes(options)}> <thead><tr><th>#{get_table_headers(header)}</th></tr></thead> <tbody>#{get_table_rows(array)}</tbody> </table> HTML end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asana_exception_notifier-0.4.0 | lib/asana_exception_notifier/helpers/heredoc_helper.rb |