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

#&, #*, #+, #annotate, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge_type, #dhall_eq, #digest, #fusion, #resolve, #shift, #substitute, #to_binary, #to_cbor, #to_proc, #to_s, #|

Instance Method Details

#as_jsonObject



876
877
878
# File 'lib/dhall/ast.rb', line 876

def as_json
	[8, {}]
end

#deep_merge(other) ⇒ Object



864
865
866
# File 'lib/dhall/ast.rb', line 864

def deep_merge(other)
	other
end

#eachObject



844
845
846
# File 'lib/dhall/ast.rb', line 844

def each
	self
end

#fetch(k, default = nil, &block) ⇒ Object



856
857
858
# File 'lib/dhall/ast.rb', line 856

def fetch(k, default=nil, &block)
	{}.fetch(k, *default, &block)
end

#keysObject



852
853
854
# File 'lib/dhall/ast.rb', line 852

def keys
	[]
end

#mapObject



872
873
874
# File 'lib/dhall/ast.rb', line 872

def map
	self
end

#merge(other) ⇒ Object



868
869
870
# File 'lib/dhall/ast.rb', line 868

def merge(other)
	other
end

#normalizeObject



336
337
338
# File 'lib/dhall/normalize.rb', line 336

def normalize
	self
end

#sliceObject



860
861
862
# File 'lib/dhall/ast.rb', line 860

def slice(*)
	self
end

#to_hObject



848
849
850
# File 'lib/dhall/ast.rb', line 848

def to_h
	{}
end