Class: Avo::Icons::Configuration
- Inherits:
-
Object
- Object
- Avo::Icons::Configuration
- Defined in:
- lib/avo/icons/configuration.rb
Instance Attribute Summary collapse
-
#custom_paths ⇒ Object
Returns the value of attribute custom_paths.
Instance Method Summary collapse
-
#add_path(path) ⇒ Object
Add a custom path to search for SVG files.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 |
# File 'lib/avo/icons/configuration.rb', line 6 def initialize @custom_paths = [] end |
Instance Attribute Details
#custom_paths ⇒ Object
Returns the value of attribute custom_paths.
4 5 6 |
# File 'lib/avo/icons/configuration.rb', line 4 def custom_paths @custom_paths end |
Instance Method Details
#add_path(path) ⇒ Object
Add a custom path to search for SVG files
18 19 20 |
# File 'lib/avo/icons/configuration.rb', line 18 def add_path(path) @custom_paths << path end |