Class: Protos::Hero::Overlay

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/hero/overlay.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject

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