class Trestle::Navigation::Item::Badge
Attributes
text[R]
Public Class Methods
new(options)
click to toggle source
# File lib/trestle/navigation/item.rb, line 75 def initialize(options) case options when Hash @html_class = options[:class] @text = options[:text] else @text = options end end
Public Instance Methods
html_class()
click to toggle source
# File lib/trestle/navigation/item.rb, line 85 def html_class @html_class || "badge-primary" end