Sha256: 8fc7ab556429accda52bf4ed901b805310d4271aaadd4a5085609839cc617f4f
Contents?: true
Size: 455 Bytes
Versions: 2
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module MkvToolNix module Extensions # offers iterable methods module Iterable # @return [Array<Property>] returns all constant values if sorted order def all_properties constants.map { |it| const_get(it) }.sort! { |a, b| a.property <=> b.property } end def find_property(property_name) all_properties.find { |it| it.property == property_name } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mkvtoolnix-1.0.0 | lib/mkvtoolnix/extensions/iterable.rb |
mkvtoolnix-0.7.0 | lib/mkvtoolnix/extensions/iterable.rb |