Module: PrettyMagic::KeyruneIcons::ClassMethods
- Included in:
- PrettyMagic::KeyruneIcons
- Defined in:
- lib/pretty_magic/keyrune_icons.rb
Instance Method Summary collapse
Instance Method Details
#set_symbols(set_code, options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/pretty_magic/keyrune_icons.rb', line 4 def set_symbols(set_code, = {}) = {color: 'common', size: 1, fixed_width: false, gradient: false}.merge() prettySymbol = "ss-" + set_code.downcase[/{(.*?)}/, 1] i_tag(prettySymbol + ' ' + optional_classes([:color], [:size], [:fixed_width], [:gradient])) end |