lib/mediainfo/tracks.rb in mediainfo-1.0.2 vs lib/mediainfo/tracks.rb in mediainfo-1.0.3

- old
+ new

@@ -50,11 +50,11 @@ end # Add {type}? @track_types.each{ |track_type| define_singleton_method("#{track_type}?"){ # Can't use set_singleton_method due to ? - self.track_types.any?(__method__.to_s.gsub('?','')) + self.track_types.include?(__method__.to_s.gsub('?','')) } } # Add {type}.count singleton_method @track_types.each{ |track_type| MediaInfo.set_singleton_method(self.instance_variable_get("@#{track_type}"),'count',@track_types.grep(/#{track_type}/).count) @@ -167,6 +167,6 @@ end return type.downcase end end -end \ No newline at end of file +end