Sha256: 89c4ac1c3fb459659b8ccd66e0c821f0e5f81bd1c52c36ba5dc5f575576ae04f
Contents?: true
Size: 333 Bytes
Versions: 3
Compression:
Stored size: 333 Bytes
Contents
module Convert module Converters # Embed vimeo by id def vimeo_embed(string, options = {}) {:width => 590, :height => 335}.merge(options) %{<iframe src="https://player.vimeo.com/video/#{string}?title=0&byline=0&portrait=0" width="#{options[:width]}" height="#{options[:height]}"></iframe>} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
convert-0.1.5 | lib/converters/vimeo_embed.rb |
convert-0.1.4 | lib/converters/vimeo_embed.rb |
convert-0.1.3 | lib/converters/vimeo_embed.rb |