Class: LucideRuby::Configuration
- Inherits:
-
Object
- Object
- LucideRuby::Configuration
- Defined in:
- lib/lucide_ruby/configuration.rb
Instance Attribute Summary collapse
-
#default_attributes ⇒ Object
Returns the value of attribute default_attributes.
-
#default_class ⇒ Object
Returns the value of attribute default_class.
-
#default_fill ⇒ Object
Returns the value of attribute default_fill.
-
#default_size ⇒ Object
Returns the value of attribute default_size.
-
#default_stroke ⇒ Object
Returns the value of attribute default_stroke.
-
#default_stroke_width ⇒ Object
Returns the value of attribute default_stroke_width.
-
#icon_path ⇒ Object
Returns the value of attribute icon_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #resolved_icon_path ⇒ Object
Constructor Details
#initialize ⇒ Configuration
9 10 11 12 13 14 15 16 17 |
# File 'lib/lucide_ruby/configuration.rb', line 9 def initialize @icon_path = nil @default_class = nil @default_size = 24 @default_stroke_width = 2 @default_fill = "none" @default_stroke = "currentColor" @default_attributes = {} end |
Instance Attribute Details
#default_attributes ⇒ Object
Returns the value of attribute default_attributes.
5 6 7 |
# File 'lib/lucide_ruby/configuration.rb', line 5 def default_attributes @default_attributes end |
#default_class ⇒ Object
Returns the value of attribute default_class.
5 6 7 |
# File 'lib/lucide_ruby/configuration.rb', line 5 def default_class @default_class end |
#default_fill ⇒ Object
Returns the value of attribute default_fill.
5 6 7 |
# File 'lib/lucide_ruby/configuration.rb', line 5 def default_fill @default_fill end |
#default_size ⇒ Object
Returns the value of attribute default_size.
5 6 7 |
# File 'lib/lucide_ruby/configuration.rb', line 5 def default_size @default_size end |
#default_stroke ⇒ Object
Returns the value of attribute default_stroke.
5 6 7 |
# File 'lib/lucide_ruby/configuration.rb', line 5 def default_stroke @default_stroke end |
#default_stroke_width ⇒ Object
Returns the value of attribute default_stroke_width.
5 6 7 |
# File 'lib/lucide_ruby/configuration.rb', line 5 def default_stroke_width @default_stroke_width end |
#icon_path ⇒ Object
Returns the value of attribute icon_path.
5 6 7 |
# File 'lib/lucide_ruby/configuration.rb', line 5 def icon_path @icon_path end |
Instance Method Details
#resolved_icon_path ⇒ Object
19 20 21 |
# File 'lib/lucide_ruby/configuration.rb', line 19 def resolved_icon_path @icon_path || default_icon_path end |