lib/slide_hero/media.rb in slide_hero-0.0.9 vs lib/slide_hero/media.rb in slide_hero-0.0.10

- old
+ new

@@ -1,13 +1,10 @@ module SlideHero class Media + include Compilable attr_reader :url, :type def initialize(url, type: :video) @url = url @type = type - end - - def compile - %{<#{type} data-autoplay src="#{type}/#{url}"></#{type}>} end end end