Module: Icons::Configuration::Weather

Extended by:
Weather
Included in:
Weather
Defined in:
lib/icons/configuration/weather.rb

Instance Method Summary collapse

Instance Method Details

#configObject



10
11
12
13
14
15
16
17
# File 'lib/icons/configuration/weather.rb', line 10

def config
  Options.new.tap do |options|
    options.default_variant = nil
    options.exclude_variants = []

    options.default = default_options
  end
end

#initializer_configObject



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

#sourceObject



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

#transformationsObject



39
40
41
42
43
44
45
# File 'lib/icons/configuration/weather.rb', line 39

def transformations
  {
    filenames: {
      delete_prefix: ["wi-"]
    }
  }
end