Class: Vime::Core::Playground

Inherits:
Vime::Component show all
Defined in:
app/components/vime/core/playground.rb

Instance Method Summary collapse

Instance Method Details

#callObject



14
15
16
# File 'app/components/vime/core/playground.rb', line 14

def call
   "vm-playground", content, process_attrs(dom_attrs)
end

#dom_attrsObject



18
19
20
21
22
23
24
25
26
# File 'app/components/vime/core/playground.rb', line 18

def dom_attrs
  super.merge({
    poster: poster,
    provider: provider,
    show_custom_ui: show_custom_ui,
    src: src,
    theme: theme,
  })
end