Sha256: 016ac1143601672a4e5e821c88297e2800d3a05df0311398c4fe820a76d7cdc7

Contents?: true

Size: 926 Bytes

Versions: 8

Compression:

Stored size: 926 Bytes

Contents

# typed: strict
# frozen_string_literal: true

require "tapioca/rbi_ext/model"
require "tapioca/dsl/helpers/param_helper"
require "tapioca/dsl/pipeline"

module Tapioca
  module Dsl
    module Compilers
      DIRECTORY = T.let(
        File.expand_path("compilers", __dir__),
        String
      )

      # DSL compilers are either built-in to Tapioca and live under the
      # `Tapioca::Dsl::Compilers` namespace (i.e. this namespace), and
      # can be referred to by just using the class name, or they live in
      # a different namespace and can only be referred to using their fully
      # qualified name. This constant encapsulates that dual lookup when
      # a compiler needs to be resolved by name.
      NAMESPACES = T.let(
        [
          "#{name}::", # compilers in this namespace
          "::", # compilers that need to be fully namespaced
        ],
        T::Array[String]
      )
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tapioca-0.8.3 lib/tapioca/dsl/compilers.rb
tapioca-0.8.2 lib/tapioca/dsl/compilers.rb
tapioca-0.7.3 lib/tapioca/dsl/compilers.rb
tapioca-0.8.1 lib/tapioca/dsl/compilers.rb
tapioca-0.8.0 lib/tapioca/dsl/compilers.rb
tapioca-0.7.2 lib/tapioca/dsl/compilers.rb
tapioca-0.7.1 lib/tapioca/dsl/compilers.rb
tapioca-0.7.0 lib/tapioca/dsl/compilers.rb