Module: MetumHelper

Defined in:
app/helpers/metum_helper.rb

Instance Method Summary collapse

Instance Method Details

#metum_tag(metum, hint: true, tag: :span) ⇒ Object



2
3
4
5
6
# File 'app/helpers/metum_helper.rb', line 2

def metum_tag(metum, hint: true, tag: :span)
  (tag, class: "tag tag--info tag--outline") do
    (hint ? (:span, class: 'sr-only') { 'Metum: ' } : '') + metum.to_s
  end
end