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_jsonObject



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

#eachObject



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

#keysObject



742
743
744
# File 'lib/dhall/ast.rb', line 742

def keys
  []
end

#mapObject



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

#normalizeObject



306
307
308
# File 'lib/dhall/normalize.rb', line 306

def normalize
  self
end

#sliceObject



750
751
752
# File 'lib/dhall/ast.rb', line 750

def slice(*)
  self
end

#to_hObject



738
739
740
# File 'lib/dhall/ast.rb', line 738

def to_h
  {}
end