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

Version Path
opulent-1.4.0 lib/opulent/compiler/root.rb
opulent-1.3.3 lib/opulent/compiler/root.rb
opulent-1.3.2 lib/opulent/compiler/root.rb
opulent-1.3.1 lib/opulent/compiler/root.rb
opulent-1.3.0 lib/opulent/compiler/root.rb
opulent-1.2.1 lib/opulent/compiler/root.rb
opulent-1.2.0 lib/opulent/compiler/root.rb
opulent-1.1.9 lib/opulent/compiler/root.rb
opulent-1.1.7 lib/opulent/compiler/root.rb
opulent-1.1.6 lib/opulent/compiler/root.rb
opulent-1.1.5 lib/opulent/compiler/root.rb
opulent-1.1.0 lib/opulent/compiler/root.rb
opulent-1.0.9 lib/opulent/compiler/root.rb
opulent-1.0.8 lib/opulent/compiler/root.rb
opulent-1.0.7 lib/opulent/compiler/root.rb
opulent-1.0.4 lib/opulent/compiler/root.rb
opulent-1.0.3 lib/opulent/compiler/root.rb
opulent-1.0.2 lib/opulent/compiler/root.rb