Class: VideojsRails::Tags::Source

Inherits:
Tag
  • Object
show all
Defined in:
lib/videojs_rails/tags/source.rb

Instance Method Summary collapse

Constructor Details

#initialize(video_type, options) ⇒ Source

Returns a new instance of Source.



4
5
6
7
# File 'lib/videojs_rails/tags/source.rb', line 4

def initialize(video_type, options)
  @video_type = video_type
  @attributes = parse_options(options)
end

Instance Method Details

#to_htmlObject



9
10
11
# File 'lib/videojs_rails/tags/source.rb', line 9

def to_html
  tag :source, @attributes
end