Method: Dhall::TypeChecker.assert
- Defined in:
- lib/dhall/typecheck.rb
.assert(type, assertion, message) ⇒ Object
8 9 10 11 |
# File 'lib/dhall/typecheck.rb', line 8 def self.assert(type, assertion, ) raise TypeError, unless assertion === type type end |