Class: FluentIcons::LazyLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent-icons/lazy_loader.rb

Class Method Summary collapse

Class Method Details

.reset!Object

Reset symbols (useful for testing or reloading)



12
13
14
15
# File 'lib/fluent-icons/lazy_loader.rb', line 12

def reset!
  @symbols = nil
  @data_file_path = nil
end

.symbolsObject

Initialize with lazy loading support



7
8
9
# File 'lib/fluent-icons/lazy_loader.rb', line 7

def symbols
  @symbols ||= load_symbols
end