Sha256: f524b2110812eb2017cff8dd2f7f2d0e19043dfa269691f5462ac6364da2d8ec

Contents?: true

Size: 253 Bytes

Versions: 1

Compression:

Stored size: 253 Bytes

Contents

module Onebox
  module Engine
    class VideoOnebox
      include Engine

      matches_regexp /^https?:\/\/.*\.mp3$/

      def to_html
        "<audio controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></audio>"
      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onebox-1.3.0 lib/onebox/engine/audio_onebox.rb