Sha256: f2ced66e0faff04034d66b8973e81875dae15d2048b72553e72159588ffcce75
Contents?: true
Size: 551 Bytes
Versions: 16
Compression:
Stored size: 551 Bytes
Contents
module FLV class IOError < ::IOError # :nodoc: end module Util # :nodoc: def self.double_check(event, expected, actual) Checking.fail_check(event, expected, actual) unless [*expected].include? actual end class Checking # :nodoc: class << self attr_accessor :strict def fail_check(event, expected, actual) err = "Mismatch on #{event}: expected #{expected} vs #{actual}" raise IOError, err if strict #STDERR << "Caution: "+ err end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems