Class: PhlexUI::Avatar::Image
- Defined in:
- lib/phlex_ui/avatar/image.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(src:, alt: "", **attrs) ⇒ Image
constructor
A new instance of Image.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(src:, alt: "", **attrs) ⇒ Image
Returns a new instance of Image.
5 6 7 8 9 |
# File 'lib/phlex_ui/avatar/image.rb', line 5 def initialize(src:, alt: "", **attrs) @src = src @alt = alt super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
11 12 13 |
# File 'lib/phlex_ui/avatar/image.rb', line 11 def view_template img(**attrs) end |