Class: Dhall::Assertion

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Expression

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

Class Method Details

.decode(type) ⇒ Object



217
218
219
# File 'lib/dhall/binary.rb', line 217

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

Instance Method Details

#as_jsonObject



1857
1858
1859
# File 'lib/dhall/ast.rb', line 1857

def as_json
	[19, type.as_json]
end