Sha256: ffa34511c85f2ff21a474514812431c9afda1ef7dc5d1d18626a809ce8a0f401

Contents?: true

Size: 578 Bytes

Versions: 7

Compression:

Stored size: 578 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

7 entries across 7 versions & 1 rubygems

Version Path
opulent-1.4.8 lib/opulent/compiler/root.rb
opulent-1.4.7 lib/opulent/compiler/root.rb
opulent-1.4.6 lib/opulent/compiler/root.rb
opulent-1.4.5 lib/opulent/compiler/root.rb
opulent-1.4.3 lib/opulent/compiler/root.rb
opulent-1.4.2 lib/opulent/compiler/root.rb
opulent-1.4.1 lib/opulent/compiler/root.rb