Class: Protos::Command

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/command.rb,
lib/protos/command/item.rb,
lib/protos/command/list.rb,
lib/protos/command/empty.rb,
lib/protos/command/group.rb,
lib/protos/command/input.rb,
lib/protos/command/title.rb,
lib/protos/command/trigger.rb

Defined Under Namespace

Classes: Empty, Group, Input, Item, List, Title, Trigger

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#close_button ⇒ Object



30
# File 'lib/protos/command.rb', line 30

def close_button(...) = render Modal::CloseButton.new(...)

#dialog ⇒ Object



28
# File 'lib/protos/command.rb', line 28

def dialog(...) = render Modal::Dialog.new(...)

#empty ⇒ Object



38
# File 'lib/protos/command.rb', line 38

def empty(...) = render Command::Empty.new(...)

#group ⇒ Object



34
# File 'lib/protos/command.rb', line 34

def group(...) = render Command::Group.new(...)

#input ⇒ Object



22
# File 'lib/protos/command.rb', line 22

def input(...) = render Command::Input.new(...)

#item ⇒ Object



36
# File 'lib/protos/command.rb', line 36

def item(...) = render Command::Item.new(...)

#list ⇒ Object



24
# File 'lib/protos/command.rb', line 24

def list(...) = render Command::List.new(...)

#title ⇒ Object



32
# File 'lib/protos/command.rb', line 32

def title(...) = render Command::Title.new(...)

#trigger ⇒ Object



26
# File 'lib/protos/command.rb', line 26

def trigger(...) = render Command::Trigger.new(...)

#view_template ⇒ Object



18
19
20
# File 'lib/protos/command.rb', line 18

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