Module: Icons::Configuration::Weather
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/icons/configuration/weather.rb', line 10 def config Options.new.tap do || .default_variant = nil .exclude_variants = [] .default = end end |
#initializer_config ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/icons/configuration/weather.rb', line 19 def initializer_config <<~RB.indent(2) # Override Weather defaults # config.libraries.weather.default_variant = "" # Set a default variant for Wweather # config.libraries.weather.exclude_variants = [] # config.libraries.weather.default.css = "size-6" # config.libraries.weather.default.data = {} RB end |
#source ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/icons/configuration/weather.rb', line 30 def source { url: "https://github.com/erikflowers/weather-icons.git", variants: { ".": "svg" # Weather has no variants, store in the top directory } } end |
#transformations ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/icons/configuration/weather.rb', line 39 def transformations { filenames: { delete_prefix: ["wi-"] } } end |