Class: Dhall::EmptyRecord
- Inherits:
-
Expression
show all
- Includes:
- Enumerable
- Defined in:
- lib/dhall/ast.rb,
lib/dhall/normalize.rb
Instance Method Summary
collapse
Methods inherited from Expression
#&, #*, #+, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge_type, #dhall_eq, #digest, #fusion, #resolve, #shift, #substitute, #to_cbor, #to_proc, #to_s, #|
Instance Method Details
#as_json ⇒ Object
766
767
768
|
# File 'lib/dhall/ast.rb', line 766
def as_json
[8, {}]
end
|
#deep_merge(other) ⇒ Object
754
755
756
|
# File 'lib/dhall/ast.rb', line 754
def deep_merge(other)
other
end
|
#each ⇒ Object
734
735
736
|
# File 'lib/dhall/ast.rb', line 734
def each
self
end
|
#fetch(k, default = nil, &block) ⇒ Object
746
747
748
|
# File 'lib/dhall/ast.rb', line 746
def fetch(k, default=nil, &block)
{}.fetch(k, *default, &block)
end
|
#keys ⇒ Object
742
743
744
|
# File 'lib/dhall/ast.rb', line 742
def keys
[]
end
|
#map ⇒ Object
762
763
764
|
# File 'lib/dhall/ast.rb', line 762
def map
self
end
|
#merge(other) ⇒ Object
758
759
760
|
# File 'lib/dhall/ast.rb', line 758
def merge(other)
other
end
|
#normalize ⇒ Object
306
307
308
|
# File 'lib/dhall/normalize.rb', line 306
def normalize
self
end
|
#slice ⇒ Object
750
751
752
|
# File 'lib/dhall/ast.rb', line 750
def slice(*)
self
end
|
#to_h ⇒ Object
738
739
740
|
# File 'lib/dhall/ast.rb', line 738
def to_h
{}
end
|