Module: Rubicons::FontAwesome5

Defined in:
lib/rubicons/font_awesome5.rb,
lib/rubicons/font_awesome5/rails_helper.rb

Defined Under Namespace

Modules: RailsHelper

Constant Summary collapse

ICONS_PATH =
File.expand_path('../../icons/font_awesome5', __dir__)

Class Method Summary collapse

Class Method Details

.available_iconsObject



33
34
35
# File 'lib/rubicons/font_awesome5.rb', line 33

def available_icons
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
end

.icon(name, **options) ⇒ Object



25
26
27
# File 'lib/rubicons/font_awesome5.rb', line 25

def icon(name, **options)
  BaseIconSet.render_icon(name, ICONS_PATH, **options)
end

.icon!(name, **options) ⇒ Object



29
30
31
# File 'lib/rubicons/font_awesome5.rb', line 29

def icon!(name, **options)
  BaseIconSet.render_icon!(name, ICONS_PATH, **options)
end

.licenseObject



21
22
23
# File 'lib/rubicons/font_awesome5.rb', line 21

def license
  'Multiple'
end

.pack_descriptionObject



17
18
19
# File 'lib/rubicons/font_awesome5.rb', line 17

def pack_description
  'Font Awesome 5 is an icon set used by millions of designers, developers, and content creators with icons for web development, mobile apps, and desktop applications.'
end

.pack_nameObject



13
14
15
# File 'lib/rubicons/font_awesome5.rb', line 13

def pack_name
  'Font Awesome 5'
end