Sha256: 5ae9872bd16fbc7b679abc659ea251df365e5e066a8173c8b56a2eb58082f8ea
Contents?: true
Size: 412 Bytes
Versions: 8
Compression:
Stored size: 412 Bytes
Contents
module ParseMethods def icon_type(type) return 'bi' end def prepend_bi(string) "bi-#{string}" end def arr_with_bi(array) array = handle_input(array) array.split(' ').map{ |s| prepend_bi(s) } end private def handle_input(input) case input when Symbol input.to_s.dasherize when Array input.join(' ').dasherize else input.to_s end end end
Version data entries
8 entries across 8 versions & 1 rubygems