Class: RailsIcons::Configuration
- Inherits:
-
Object
- Object
- RailsIcons::Configuration
show all
- Defined in:
- lib/rails_icons/configuration.rb,
lib/rails_icons/configuration/flags.rb,
lib/rails_icons/configuration/radix.rb,
lib/rails_icons/configuration/linear.rb,
lib/rails_icons/configuration/lucide.rb,
lib/rails_icons/configuration/tabler.rb,
lib/rails_icons/configuration/feather.rb,
lib/rails_icons/configuration/weather.rb,
lib/rails_icons/configuration/animated.rb,
lib/rails_icons/configuration/boxicons.rb,
lib/rails_icons/configuration/phosphor.rb,
lib/rails_icons/configuration/heroicons.rb,
lib/rails_icons/configuration/sidekickicons.rb
Defined Under Namespace
Modules: Animated, Boxicons, Feather, Flags, Heroicons, Linear, Lucide, Phosphor, Radix, Sidekickicons, Tabler, Weather
Instance Method Summary
collapse
Constructor Details
13
14
15
16
17
18
|
# File 'lib/rails_icons/configuration.rb', line 13
def initialize
@config = ActiveSupport::OrderedOptions.new
set_default_config
set_libraries_config
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name) ⇒ Object
32
33
34
35
36
37
38
|
# File 'lib/rails_icons/configuration.rb', line 32
def method_missing(method_name, ...)
if @config.respond_to?(method_name)
@config.send(method_name, ...)
else
super
end
end
|
Instance Method Details
#destination_path ⇒ Object
20
21
22
23
24
|
# File 'lib/rails_icons/configuration.rb', line 20
def destination_path
ActiveSupport::Deprecation.new.warn("`destination_path` is deprecated. Use `icons_path` instead.")
@config.icons_path
end
|
#destination_path=(value) ⇒ Object
26
27
28
29
30
|
# File 'lib/rails_icons/configuration.rb', line 26
def destination_path=(value)
ActiveSupport::Deprecation.new.warn("`destination_path=` is deprecated. Use `icons_path=` instead.")
@config.icons_path = value
end
|
#respond_to_missing?(method_name) ⇒ Boolean
40
41
42
|
# File 'lib/rails_icons/configuration.rb', line 40
def respond_to_missing?(method_name)
@config.respond_to?(method_name) || super
end
|