Module: RailsIcons::Configuration::Feather

Extended by:
Feather
Included in:
Feather
Defined in:
lib/rails_icons/configuration/feather.rb

Instance Method Summary collapse

Instance Method Details

#configObject



8
9
10
11
12
13
14
15
# File 'lib/rails_icons/configuration/feather.rb', line 8

def config
  ActiveSupport::OrderedOptions.new.tap do |options|
    options.default_variant = nil
    options.exclude_variants = []

    options.default = default_options
  end
end

#initializer_configObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/rails_icons/configuration/feather.rb', line 17

def initializer_config
  "    # Override Feather defaults\n    # config.libraries.feather.default_variant = \"\" # Feather has no variants, this is provided for backwards compatibility\n    # config.libraries.feather.exclude_variants = [] # Feather has no variants, this is provided for backwards compatibility\n\n    # config.libraries.feather.default.css = \"size-6\"\n    # config.libraries.feather.default.stroke_width = \"2\"\n    # config.libraries.feather.default.data = {}\n  RB\nend\n".indent(2)

#sourceObject



29
30
31
32
33
34
35
36
# File 'lib/rails_icons/configuration/feather.rb', line 29

def source
  {
    url: "https://github.com/feathericons/feather.git",
    variants: {
      ".": "icons" # Feather has no variants, store in the top directory
    }
  }
end