class Jekyll::Vimeo
Public Class Methods
new(name, id, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll-vimeo.rb, line 9 def initialize(name, id, tokens) super @id = id end
Public Instance Methods
render(context)
click to toggle source
# File lib/jekyll-vimeo.rb, line 14 def render(context) %(<iframe width="#{@@width}" height="#{@@height}" src="https://player.vimeo.com/video/#{@id}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>) end