Classes: Url
7 8 9 10
# File 'lib/video_embed/vimeo.rb', line 7 def embed(url, options = {}) vimeo_url = Vimeo::Url.new(url, options) vimeo_url.embed end
Returns:
3 4 5
# File 'lib/video_embed/vimeo.rb', line 3 def url?(url) url.host =~ /vimeo.com/ end