Class: VideojsRails::Tags::Source
- Defined in:
- lib/videojs_rails/tags/source.rb
Instance Method Summary collapse
-
#initialize(video_type, options) ⇒ Source
constructor
A new instance of Source.
- #to_html ⇒ Object
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, ) @video_type = video_type @attributes = () end |
Instance Method Details
#to_html ⇒ Object
9 10 11 |
# File 'lib/videojs_rails/tags/source.rb', line 9 def to_html tag :source, @attributes end |