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
482 483 484 |
# File 'lib/dhall/typecheck.rb', line 482 def initialize(expr) @expr = expr end |
Instance Method Details
#annotate ⇒ Object
486 487 488 489 490 491 |
# File 'lib/dhall/typecheck.rb', line 486 def annotate(*) Dhall::TypeAnnotation.new( value: @expr, type: Dhall::Variable["Type"] ) end |