Class: Lucide::Base
- Inherits:
-
Components::ApplicationComponent
- Object
- Components::ApplicationComponent
- Lucide::Base
- Defined in:
- app/views/rails_devtools/components/lucide/base.rb
Direct Known Subclasses
Close, Database, ExternalLink, Images, Menu, Package, PocketKnife, SignPost, Trash, TriangleAlert
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#stroke ⇒ Object
readonly
Returns the value of attribute stroke.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width: 24, height: 24) ⇒ Base
constructor
A new instance of Base.
- #view_template ⇒ Object
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
#height ⇒ Object (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 |
#stroke ⇒ Object (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 |
#width ⇒ Object (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_template ⇒ Object
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 |