Sha256: a85f66add541048dd7a295e5c23f8cd09dfff1267782b0081fd03a67f5931f49

Contents?: true

Size: 481 Bytes

Versions: 27

Compression:

Stored size: 481 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
    #
    def root(current, indent)
      if KEYWORDS.include? current[@type]
        send :"#{current[@type]}_node", current, indent
      else
        send current[@type], current, indent
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
opulent-1.8.5 lib/opulent/compiler/root.rb
opulent-1.8.4 lib/opulent/compiler/root.rb
opulent-1.8.3 lib/opulent/compiler/root.rb
opulent-1.8.2 lib/opulent/compiler/root.rb
opulent-1.8.1 lib/opulent/compiler/root.rb
opulent-1.8.0 lib/opulent/compiler/root.rb
opulent-1.7.11 lib/opulent/compiler/root.rb
opulent-1.7.10 lib/opulent/compiler/root.rb
opulent-1.7.9 lib/opulent/compiler/root.rb
opulent-1.7.8 lib/opulent/compiler/root.rb
opulent-1.7.7 lib/opulent/compiler/root.rb
opulent-1.7.6 lib/opulent/compiler/root.rb
opulent-1.7.5 lib/opulent/compiler/root.rb
opulent-1.7.4 lib/opulent/compiler/root.rb
opulent-1.7.3 lib/opulent/compiler/root.rb
opulent-1.7.2 lib/opulent/compiler/root.rb
opulent-1.7.1 lib/opulent/compiler/root.rb
opulent-1.7.0 lib/opulent/compiler/root.rb
opulent-1.6.9 lib/opulent/compiler/root.rb
opulent-1.6.8 lib/opulent/compiler/root.rb