Class: Dhall::TypeChecker::EmptyAnonymousType
- Inherits:
-
Object
- Object
- Dhall::TypeChecker::EmptyAnonymousType
- Defined in:
- lib/dhall/typecheck.rb
Instance Method Summary collapse
- #annotate ⇒ Object
-
#initialize(expr) ⇒ EmptyAnonymousType
constructor
A new instance of EmptyAnonymousType.
Constructor Details
#initialize(expr) ⇒ EmptyAnonymousType
Returns a new instance of EmptyAnonymousType.
490 491 492 |
# File 'lib/dhall/typecheck.rb', line 490 def initialize(expr) @expr = expr end |
Instance Method Details
#annotate ⇒ Object
494 495 496 497 498 499 |
# File 'lib/dhall/typecheck.rb', line 494 def annotate(*) Dhall::TypeAnnotation.new( value: @expr, type: Builtins[:Type] ) end |