Module: Spurs::Badge::Helper

Defined in:
lib/spurs/badge.rb

Instance Method Summary collapse

Instance Method Details

#spurs_badge(content, options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/spurs/badge.rb', line 4

def spurs_badge(content, options={})
  class_str ="badge"
  if options[:type]
    class_str.concat(" badge-#{options[:type]}")
  end
  (:span,content.html_safe,:class => class_str)
end