Class: IcoMoonToys::Template
- Inherits:
-
Object
- Object
- IcoMoonToys::Template
- 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
-
#extract_map ⇒ Object
readonly
Returns the value of attribute extract_map.
Instance Method Summary collapse
-
#initialize(extract_map: DEFAULT_EXTRACT_MAP) ⇒ Template
constructor
A new instance of Template.
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_map ⇒ Object (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 |