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_binary, #to_cbor, #to_proc, #to_s, #|

Class Method Details

.decode(value, type) ⇒ Object



287
288
289
# File 'lib/dhall/binary.rb', line 287

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

Instance Method Details

#as_jsonObject



1811
1812
1813
# File 'lib/dhall/ast.rb', line 1811

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

#normalizeObject



459
460
461
# File 'lib/dhall/normalize.rb', line 459

def normalize
	value.normalize
end