Class: Dhall::Operator
- Inherits:
-
Expression
- Object
- Expression
- Dhall::Operator
- Defined in:
- lib/dhall/ast.rb,
lib/dhall/binary.rb,
lib/dhall/normalize.rb
Direct Known Subclasses
And, Equal, Equivalent, ImportFallback, ListConcatenate, NotEqual, Or, Plus, RecursiveRecordMerge, RecursiveRecordTypeMerge, RightBiasedRecordMerge, TextConcatenate, Times
Defined Under Namespace
Modules: FetchFromMerge Classes: And, Equal, Equivalent, ImportFallback, ListConcatenate, NotEqual, Or, Plus, RecursiveRecordMerge, RecursiveRecordTypeMerge, RightBiasedRecordMerge, TextConcatenate, Times
Constant Summary collapse
- OPERATORS =
[ Or, And, Equal, NotEqual, Plus, Times, TextConcatenate, ListConcatenate, RecursiveRecordMerge, RightBiasedRecordMerge, RecursiveRecordTypeMerge, ImportFallback, Equivalent ].freeze
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
Instance Method Details
#as_json ⇒ Object
350 351 352 |
# File 'lib/dhall/ast.rb', line 350 def as_json [3, OPERATORS.index(self.class), lhs.as_json, rhs.as_json] end |