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, options = {})
  options = {color: 'common', size: 1, fixed_width: false, gradient: false}.merge(options)
  
  prettySymbol = "ss-" + set_code.downcase[/{(.*?)}/, 1]  
    
  i_tag(prettySymbol + ' ' + optional_classes(options[:color], options[:size], options[:fixed_width], options[:gradient]))
end