Class: Protos::Hero

Inherits:
Component show all
Defined in:
lib/protos/hero.rb,
lib/protos/hero/content.rb,
lib/protos/hero/overlay.rb

Defined Under Namespace

Classes: Content, Overlay

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#content ⇒ Object



16
# File 'lib/protos/hero.rb', line 16

def content(...) = render Content.new(...)

#overlay ⇒ Object



18
# File 'lib/protos/hero.rb', line 18

def overlay(...) = render Overlay.new(...)

#view_template ⇒ Object



12
13
14
# File 'lib/protos/hero.rb', line 12

def view_template(&)
  div(**attrs, &)
end