Module: StylePalette::Helper
- Defined in:
- lib/style_palette/helper.rb
Class Method Summary collapse
Class Method Details
.label(word, palette_name) ⇒ Object
2 3 4 5 |
# File 'lib/style_palette/helper.rb', line 2 def self.label(word, palette_name) style = StylePalette.brush(word, palette_name).style "<span class=\"label\" style=\"#{style}\">#{word}</span>" end |