Method: Opal::Nodes::HashNode#compile

Defined in:
lib/opal/nodes/hash.rb

#compileObject



33
34
35
36
37
38
39
40
41
# File 'lib/opal/nodes/hash.rb', line 33

def compile
  if has_kwsplat
    compile_merge
  elsif simple_keys?
    compile_hash2
  else
    compile_hash
  end
end