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

Version Path
marcandre-flvedit-0.6.1 lib/flv/util/double_check.rb
marcandre-flvedit-0.6.2 lib/flv/util/double_check.rb
marcandre-flvedit-0.6.3 lib/flvedit/flv/util/double_check.rb
marcandre-flvedit-0.6.4 lib/flvedit/flv/util/double_check.rb
marcandre-flvedit-0.7.0 lib/flvedit/flv/util/double_check.rb
marcandre-flvedit-0.7.1 lib/flvedit/flv/util/double_check.rb
marcandre-flvedit-0.7.2 lib/flvedit/flv/util/double_check.rb
marcandre-flvedit-0.7.3 lib/flvedit/flv/util/double_check.rb
flvedit-0.7.4 lib/flvedit/flv/util/double_check.rb
flvedit-0.7.2 lib/flvedit/flv/util/double_check.rb
flvedit-0.7.1 lib/flvedit/flv/util/double_check.rb
flvedit-0.6.4 lib/flvedit/flv/util/double_check.rb
flvedit-0.7.0 lib/flvedit/flv/util/double_check.rb
flvedit-0.6.1 lib/flv/util/double_check.rb
flvedit-0.6.3 lib/flvedit/flv/util/double_check.rb
flvedit-0.6.2 lib/flv/util/double_check.rb