chat-block-processor: init skeleton version

This commit is contained in:
Gabriel Arazas 2023-04-03 21:55:33 +08:00
parent 0656dcdfb0
commit 136878bb27
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -0,0 +1,14 @@
# frozen_string_literal: true
class ChatBlock < Asciidoctor::Extensions::BlockProcessor
use_dsl
named :chat
on_context :example
name_positional_attributes 'avatar', 'state'
default_attributes 'state' => 'default', 'avatarstype' => 'webp'
# TODO: Create the output.
def process(parent, reader, attrs)
end
end