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_binary, #to_cbor, #to_proc, #to_s, #|

Instance Method Details

#as_jsonObject



835
836
837
# File 'lib/dhall/ast.rb', line 835

def as_json
	[8, {}]
end

#deep_merge(other) ⇒ Object



823
824
825
# File 'lib/dhall/ast.rb', line 823

def deep_merge(other)
	other
end

#eachObject



803
804
805
# File 'lib/dhall/ast.rb', line 803

def each
	self
end

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



815
816
817
# File 'lib/dhall/ast.rb', line 815

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

#keysObject



811
812
813
# File 'lib/dhall/ast.rb', line 811

def keys
	[]
end

#mapObject



831
832
833
# File 'lib/dhall/ast.rb', line 831

def map
	self
end

#merge(other) ⇒ Object



827
828
829
# File 'lib/dhall/ast.rb', line 827

def merge(other)
	other
end

#normalizeObject



320
321
322
# File 'lib/dhall/normalize.rb', line 320

def normalize
	self
end

#sliceObject



819
820
821
# File 'lib/dhall/ast.rb', line 819

def slice(*)
	self
end

#to_hObject



807
808
809
# File 'lib/dhall/ast.rb', line 807

def to_h
	{}
end