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.6.7 lib/opulent/compiler/root.rb
opulent-1.6.6 lib/opulent/compiler/root.rb
opulent-1.6.5 lib/opulent/compiler/root.rb
opulent-1.6.3 lib/opulent/compiler/root.rb
opulent-1.6.2 lib/opulent/compiler/root.rb
opulent-1.6.1 lib/opulent/compiler/root.rb
opulent-1.6.0 lib/opulent/compiler/root.rb