Class: Dhall::TypeAnnotation

Inherits:
Expression show all
Defined in:
lib/dhall/ast.rb,
lib/dhall/binary.rb,
lib/dhall/normalize.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Expression

#&, #*, #+, #as_dhall, #cache_key, #call, #concat, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #fusion, #merge, #resolve, #shift, #slice, #substitute, #to_cbor, #to_proc, #to_s, #|

Class Method Details

.decode(value, type) ⇒ Object



220
221
222
# File 'lib/dhall/binary.rb', line 220

def self.decode(value, type)
  new(value: Dhall.decode(value), type: Dhall.decode(type))
end

Instance Method Details

#as_jsonObject



1682
1683
1684
# File 'lib/dhall/ast.rb', line 1682

def as_json
  [26, value.as_json, type.as_json]
end

#normalizeObject



433
434
435
# File 'lib/dhall/normalize.rb', line 433

def normalize
  value.normalize
end