Class: RailsIcons::Configuration
- Inherits:
-
Object
- Object
- RailsIcons::Configuration
- 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
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #method_missing(method_name) ⇒ Object
- #respond_to_missing?(method_name) ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
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
20 21 22 23 24 25 26 |
# File 'lib/rails_icons/configuration.rb', line 20 def method_missing(method_name, ...) if @config.respond_to?(method_name) @config.send(method_name, ...) else super end end |
Instance Method Details
#respond_to_missing?(method_name) ⇒ Boolean
28 29 30 |
# File 'lib/rails_icons/configuration.rb', line 28 def respond_to_missing?(method_name) @config.respond_to?(method_name) || super end |