Class: IcoMoonToys::Template

Inherits:
Object
  • Object
show all
Includes:
Toys::Template
Defined in:
lib/icomoon_toys/template.rb

Overview

Toys template for IcoMoon

Constant Summary collapse

DEFAULT_EXTRACT_MAP =
{
	'selection.json' => 'assets/icomoon/selection.json',
	'svgxuse.min.js' => 'public/scripts/lib/svgxuse.min.js',
	'style.css' => 'public/styles/icomoon.css',
	'symbol-defs.svg' => 'public/images/icons/symbol-defs.svg'
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(extract_map: DEFAULT_EXTRACT_MAP) ⇒ Template

Returns a new instance of Template.



20
21
22
# File 'lib/icomoon_toys/template.rb', line 20

def initialize(extract_map: DEFAULT_EXTRACT_MAP)
	@extract_map = DEFAULT_EXTRACT_MAP.merge(extract_map).compact
end

Instance Attribute Details

#extract_mapObject (readonly)

Returns the value of attribute extract_map.



11
12
13
# File 'lib/icomoon_toys/template.rb', line 11

def extract_map
  @extract_map
end