Module: ParseMethods
- Included in:
- BiIconParser
- Defined in:
- lib/bootstrap_icons_rails/parsers/parse_methods.rb
Instance Method Summary collapse
Instance Method Details
#arr_with_bi(array) ⇒ Object
10 11 12 13 |
# 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) ⇒ Object
2 3 4 |
# File 'lib/bootstrap_icons_rails/parsers/parse_methods.rb', line 2 def icon_type(type) return 'bi' end |
#prepend_bi(string) ⇒ Object
6 7 8 |
# File 'lib/bootstrap_icons_rails/parsers/parse_methods.rb', line 6 def prepend_bi(string) "bi-#{string}" end |