Class: LZWS::Validation
- Inherits:
-
ADSP::Validation
- Object
- ADSP::Validation
- LZWS::Validation
- Defined in:
- lib/lzws/validation.rb
Overview
LZWS::Validation class.
Class Method Summary collapse
-
.validate_bool(value) ⇒ Object
Raises error when
value
is not boolean.
Class Method Details
.validate_bool(value) ⇒ Object
Raises error when value
is not boolean.
10 11 12 |
# File 'lib/lzws/validation.rb', line 10 def self.validate_bool(value) raise ValidateError, "invalid bool" unless value.is_a?(::TrueClass) || value.is_a?(::FalseClass) end |