module MkvToolNix::Extensions::Iterable

offers iterable methods

Public Instance Methods

all_properties() click to toggle source

@return [Array<Property>] returns all constant values if sorted order

# File lib/mkvtoolnix/extensions/iterable.rb, line 9
def all_properties
  constants.map { |it| const_get(it) }.sort! { |a, b| a.property <=> b.property }
end
find_property(property_name) click to toggle source
# File lib/mkvtoolnix/extensions/iterable.rb, line 13
def find_property(property_name)
  all_properties.find { |it| it.property == property_name }
end