Class: Maglev::Turbo::Streams::TagBuilder

Inherits:
Turbo::Streams::TagBuilder
  • Object
show all
Defined in:
app/lib/maglev/turbo/streams/tag_builder.rb

Instance Method Summary collapse

Instance Method Details

#console_log(message) ⇒ Object



7
8
9
# File 'app/lib/maglev/turbo/streams/tag_builder.rb', line 7

def console_log(message)
  turbo_stream_action_tag :console_log, message: message
end

#dispatch_event(type, payload:) ⇒ Object



11
12
13
# File 'app/lib/maglev/turbo/streams/tag_builder.rb', line 11

def dispatch_event(type, payload:)
  turbo_stream_action_tag :dispatch_event, type: type, payload: payload
end