Method: Red::DefinitionNode::ObjectLiteralNode#compile_node

Defined in:
lib/red/definition_nodes.rb

#compile_node(options = {}) ⇒ Object



136
137
138
139
# File 'lib/red/definition_nodes.rb', line 136

def compile_node(options = {})
  slots = @slots.compile_nodes(:as_prototype => true).compact.join(', ')
  return "{ %s }" % [slots]
end