Sha256: 7f8cc6614d104b4bc65a30d2546b0564a985b6c2e23e0b80f70e27dcf075d0a6
Contents?: true
Size: 577 Bytes
Versions: 18
Compression:
Stored size: 577 Bytes
Contents
# @Opulent module Opulent # @Compiler class Compiler # Generate code for all nodes by calling the method with their type name # # @param current [Array] Current node data with options # @param indent [Fixnum] Indentation size for current node # @param context [Context] Context holding environment variables # def root(current, indent, context) if Keywords.include? current[@type] send :"#{current[@type]}_node", current, indent, context else send current[@type], current, indent, context end end end end
Version data entries
18 entries across 18 versions & 1 rubygems