Module: StimulusPlumbers::Themes::Icons::External
- Defined in:
- lib/stimulus_plumbers/themes/icons/external.rb
Constant Summary collapse
- SVG_RENAME =
Schema::Icon::SVG_ATTR_NAMES.invert.freeze
- ELEMENT_RENAME =
Schema::Icon::ELEMENT_ATTR_NAMES.invert.freeze
Instance Method Summary collapse
Instance Method Details
#fetch(key) ⇒ Object
17 18 19 20 |
# File 'lib/stimulus_plumbers/themes/icons/external.rb', line 17 def fetch(key) file = svg_path(key) parse_svg(key, File.read(file)) if File.exist?(file) end |
#include?(key) ⇒ Boolean
13 14 15 |
# File 'lib/stimulus_plumbers/themes/icons/external.rb', line 13 def include?(key) File.exist?(svg_path(key)) end |