Class: Protos::Swap::On

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/swap/on.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 on state for a swap component. This is the active state.



8
9
10
# File 'lib/protos/swap/on.rb', line 8

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