Class: FLV::Util::Checking
- Inherits:
-
Object
- Object
- FLV::Util::Checking
- Defined in:
- lib/flvedit/flv/util/double_check.rb
Overview
:nodoc:
Class Attribute Summary collapse
-
.strict ⇒ Object
Returns the value of attribute strict.
Class Method Summary collapse
Class Attribute Details
.strict ⇒ Object
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
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 |