module ParseMethods
Public Instance Methods
arr_with_bi(array)
click to toggle source
# File lib/bootstrap_icons_rails/parsers/parse_methods.rb, line 10 def arr_with_bi(array) array = handle_input(array) array.split(' ').map{ |s| prepend_bi(s) } end
icon_type(type)
click to toggle source
# File lib/bootstrap_icons_rails/parsers/parse_methods.rb, line 2 def icon_type(type) return "bi" end
prepend_bi(string)
click to toggle source
# File lib/bootstrap_icons_rails/parsers/parse_methods.rb, line 6 def prepend_bi(string) "bi-#{string}" end
Private Instance Methods
handle_input(input)
click to toggle source
# File lib/bootstrap_icons_rails/parsers/parse_methods.rb, line 17 def handle_input(input) case input when Symbol input.to_s.dasherize when Array input.join(' ').dasherize else input.to_s end end