lib/esvg.rb
# Load aliases from configuration.
#  returns a hash of aliasees mapped to a name.
#  Converts configuration YAML:
#    alias:
#      foo: bar
#      baz: zip, zop
#  To output:
#    { :bar => "foo", :zip => "baz", :zop => "baz" }
#
Load aliases from configuration.
returns a hash of aliasees mapped to a name.
Load aliases from configuration . returns a hash of aliasees mapped to a name .
def load_aliases(aliases)
    a = {}
    aliases.each do |name,alternates|
      alternates.split(',').each do |val|
        a[dasherize(val.strip).to_sym] = dasherize(name.to_s)
      end
    end
    a
  end
def load_aliases ( aliases ) a = { } aliases . each do | name , alternates | alternates . split ( ',' ) . each do | val | a [ dasherize ( val . strip ) . to_sym ] = dasherize ( name . to_s ) end end a end
Load aliases from configuration.
Load aliases from configuration .
aliases
<not_specific>