Class: Protos::Hero::Overlay
- Defined in:
- lib/protos/hero/overlay.rb
Instance Method Summary collapse
-
#view_template ⇒ Object
DOCS: The overlay of a hero.
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#view_template ⇒ Object
DOCS: The overlay of a hero. This would be used with images to reduce their opacity through the opacity of the overlay. This can be useful to make text readable on noisy images.
10 11 12 |
# File 'lib/protos/hero/overlay.rb', line 10 def view_template(&) div(**attrs, &) end |