Class: RailsMail::TurboHelper::TurboStreamBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/rails_mail/turbo_helper.rb

Instance Method Summary collapse

Instance Method Details

#append(target:, content:) ⇒ Object



26
27
28
# File 'app/helpers/rails_mail/turbo_helper.rb', line 26

def append(target:, content:)
  build_stream("append", target, content)
end

#prepend(target:, content:) ⇒ Object



30
31
32
# File 'app/helpers/rails_mail/turbo_helper.rb', line 30

def prepend(target:, content:)
  build_stream("prepend", target, content)
end

#update(target:, content:) ⇒ Object



34
35
36
# File 'app/helpers/rails_mail/turbo_helper.rb', line 34

def update(target:, content:)
  build_stream("update", target, content)
end