Class: Protos::ChatBubble
- Inherits:
-
Component
- Object
- Phlex::HTML
- Component
- Protos::ChatBubble
show all
- Defined in:
- lib/protos/chat_bubble.rb,
lib/protos/chat_bubble/image.rb,
lib/protos/chat_bubble/footer.rb,
lib/protos/chat_bubble/header.rb,
lib/protos/chat_bubble/content.rb
Defined Under Namespace
Classes: Content, Footer, Header, Image
Constant Summary
collapse
- Positions =
Types::Coercible::Symbol.enum(
:start,
:end
)
- ALIGNMENTS =
{
start: "chat-start",
end: "chat-end"
}.freeze
Instance Method Summary
collapse
Methods inherited from Component
#initialize
Instance Method Details
#content ⇒ Object
34
|
# File 'lib/protos/chat_bubble.rb', line 34
def content(...) = render Content.new(...)
|
36
|
# File 'lib/protos/chat_bubble.rb', line 36
def (...) = render .new(...)
|
38
|
# File 'lib/protos/chat_bubble.rb', line 38
def (...) = render .new(...)
|
#image ⇒ Object
40
|
# File 'lib/protos/chat_bubble.rb', line 40
def image(...) = render Image.new(...)
|
#view_template ⇒ Object
30
31
32
|
# File 'lib/protos/chat_bubble.rb', line 30
def view_template(&)
div(**attrs, &)
end
|