Class: FLV::Util::Checking

Inherits:
Object
  • Object
show all
Defined in:
lib/flvedit/flv/util/double_check.rb

Overview

:nodoc:

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.strictObject

Returns the value of attribute strict.



12
13
14
# File 'lib/flvedit/flv/util/double_check.rb', line 12

def strict
  @strict
end

Class Method Details

.fail_check(event, expected, actual) ⇒ Object

Raises:



13
14
15
16
17
# File 'lib/flvedit/flv/util/double_check.rb', line 13

def fail_check(event, expected, actual)
  err = "Mismatch on #{event}: expected #{expected} vs #{actual}"
  raise IOError, err if strict
  #STDERR << "Caution: "+ err
end