class Browser::Element::TimeRanges
Public Class Methods
new(native)
click to toggle source
# File lib/browser/element/media.rb, line 50 def initialize native @native = native end
Public Instance Methods
each() { |time_range(`#start`, `#end`)| ... }
click to toggle source
# File lib/browser/element/media.rb, line 58 def each `#@native.length`.times do |i| yield TimeRange.new(`#@native.start(i)`, `#@native.end(i)`) end self end
to_n()
click to toggle source
# File lib/browser/element/media.rb, line 54 def to_n @native end