Module: Rabbit::Parser::Ext::Video

Included in:
RD::Ext::Video
Defined in:
lib/rabbit/parser/ext/video.rb

Instance Method Summary collapse

Instance Method Details

#make_video(canvas, path, prop) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/rabbit/parser/ext/video.rb', line 7

def make_video(canvas, path, prop)
  begin
    Element::Video.new(path, prop)
  rescue Error
    canvas.logger.warn($!.message)
    nil
  end
end