Method: Editframe::VideoClip#set_resolution
- Defined in:
- lib/editframe/video/clip.rb
#set_resolution(resolution) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/editframe/video/clip.rb', line 29 def set_resolution(resolution) return unless !resolution.nil? values = resolution.split('x') @resolution = { width: values[0].to_i, height: values[1].to_i } self end |