Class: Lucide::Base

Inherits:
Components::ApplicationComponent
  • Object
show all
Defined in:
app/views/rails_devtools/components/lucide/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width: 24, height: 24) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'app/views/rails_devtools/components/lucide/base.rb', line 8

def initialize(width: 24, height: 24)
  @width = width.to_s
  @height = height.to_s
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



6
7
8
# File 'app/views/rails_devtools/components/lucide/base.rb', line 6

def height
  @height
end

#strokeObject (readonly)

Returns the value of attribute stroke.



6
7
8
# File 'app/views/rails_devtools/components/lucide/base.rb', line 6

def stroke
  @stroke
end

#widthObject (readonly)

Returns the value of attribute width.



6
7
8
# File 'app/views/rails_devtools/components/lucide/base.rb', line 6

def width
  @width
end

Instance Method Details

#view_templateObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'app/views/rails_devtools/components/lucide/base.rb', line 13

def view_template
  raise NotImplementedError, "You must implement the view_template method"
end