Module: Rubicons::ThemifyIcons

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

Defined Under Namespace

Modules: RailsHelper

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.available_iconsObject



30
31
32
# File 'lib/rubicons/themify_icons.rb', line 30

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

.icon(name, **options) ⇒ Object



22
23
24
# File 'lib/rubicons/themify_icons.rb', line 22

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

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



26
27
28
# File 'lib/rubicons/themify_icons.rb', line 26

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

.licenseObject



18
19
20
# File 'lib/rubicons/themify_icons.rb', line 18

def license
  'SIL OFL 1.1'
end

.pack_descriptionObject



14
15
16
# File 'lib/rubicons/themify_icons.rb', line 14

def pack_description
  'Themify Icons is a complete set of icons for use in web design and apps, consisting of 320+ pixel-perfect, hand-crafted icons that are suitable for various projects.'
end

.pack_nameObject



10
11
12
# File 'lib/rubicons/themify_icons.rb', line 10

def pack_name
  'Themify Icons'
end