Class: LucideRuby::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/lucide_ruby/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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_attributesObject

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_classObject

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_fillObject

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_sizeObject

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_strokeObject

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_widthObject

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_pathObject

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_pathObject



19
20
21
# File 'lib/lucide_ruby/configuration.rb', line 19

def resolved_icon_path
  @icon_path || default_icon_path
end