Class: Dhall::TypeChecker::EmptyRecord
- Inherits:
-
Object
- Object
- Dhall::TypeChecker::EmptyRecord
- Defined in:
- lib/dhall/typecheck.rb
Instance Method Summary collapse
- #annotate ⇒ Object
-
#initialize(expr) ⇒ EmptyRecord
constructor
A new instance of EmptyRecord.
Constructor Details
#initialize(expr) ⇒ EmptyRecord
Returns a new instance of EmptyRecord.
546 547 548 |
# File 'lib/dhall/typecheck.rb', line 546 def initialize(expr) @expr = expr end |
Instance Method Details
#annotate ⇒ Object
550 551 552 553 554 555 |
# File 'lib/dhall/typecheck.rb', line 550 def annotate(*) Dhall::TypeAnnotation.new( value: @expr, type: Dhall::EmptyRecordType.new ) end |