Module: Hdh::Helpers
Instance Method Summary collapse
- #render(h) ⇒ Object (also: #html)
Instance Method Details
#render(h) ⇒ Object Also known as: html
2 3 4 5 6 |
# File 'lib/hdh/helpers.rb', line 2 def render(h) return escape(h) unless h.is_a?(Array) h.any? ? render_tag(h) : '' end |