Method: Uinit::Type::TypeOf#check!
- Defined in:
- lib/uinit/type/type_of.rb
#check!(value, depth) ⇒ Object
28 29 30 31 32 |
# File 'lib/uinit/type/type_of.rb', line 28 def check!(value, depth) return value if value.is_a?(class_module) type_error!("#{value.inspect} must be an instance of #{class_module}", depth) end |