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
#&, #*, #+, #annotate, #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
293
294
295
|
# File 'lib/dhall/binary.rb', line 293
def self.decode(value, type)
new(value: Dhall.decode(value), type: Dhall.decode(type))
end
|
Instance Method Details
#as_json ⇒ Object
1847
1848
1849
|
# File 'lib/dhall/ast.rb', line 1847
def as_json
[26, value.as_json, type.as_json]
end
|
#normalize ⇒ Object
461
462
463
|
# File 'lib/dhall/normalize.rb', line 461
def normalize
value.normalize
end
|