Method: JsDuck::Inline::Video#initialize
- Defined in:
- lib/jsduck/inline/video.rb
#initialize(opts = {}) ⇒ Video
Returns a new instance of Video.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/jsduck/inline/video.rb', line 13 def initialize(opts={}) @doc_context = {} @templates = { "html5" => '<video src="%u">%a</video>', "vimeo" => [ '<p><iframe src="http://player.vimeo.com/video/%u" width="640" height="360" frameborder="0" ', 'webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>' ].join } @re = /\{@video\s+(\w+)\s+(\S*?)(?:\s+(.+?))?\}/m end |