Sha256: 0b41bfbbe464b5b1859fbb8a441d89b2c563dd9e65753aac0131516eda70beb3
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
# Titles class RakeMKV::Titles include Enumerable def initialize(titles) @titles = titles end def each(&block) @titles.each(&block) end # Find title by id def at_id(id) detect { |title| title.id == id } end # Get longest title def longest max { |a, b| a.time <=> b.time } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rakemkv-0.3.0 | lib/rakemkv/titles.rb |
rakemkv-0.2.0 | lib/rakemkv/titles.rb |