Class: Dhall::Operator::RightBiasedRecordMerge
- Inherits:
-
Dhall::Operator
- Object
- Expression
- Dhall::Operator
- Dhall::Operator::RightBiasedRecordMerge
- Includes:
- FetchFromMerge
- Defined in:
- lib/dhall/ast.rb,
lib/dhall/normalize.rb
Constant Summary collapse
- FETCH1K =
:rhs
- FETCH2K =
:lhs
Constants inherited from Dhall::Operator
Instance Method Summary collapse
Methods included from FetchFromMerge
Methods inherited from Dhall::Operator
Methods inherited from Expression
#&, #*, #+, #annotate, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #fusion, #merge, #resolve, #shift, #slice, #substitute, #to_binary, #to_cbor, #to_proc, #to_s, #|
Instance Method Details
#normalize ⇒ Object
247 248 249 250 251 252 |
# File 'lib/dhall/normalize.rb', line 247 def normalize n_lhs = lhs.normalize n_rhs = rhs.normalize return n_lhs if n_lhs == n_rhs n_lhs.merge(n_rhs) end |