Sha256: 732b9281e7d1993d9499783b1ba8eab16a9b0a85f9dabafff1f0558a6ce36df3

Contents?: true

Size: 834 Bytes

Versions: 4

Compression:

Stored size: 834 Bytes

Contents

module TemplateDSL
  def self.extend_dsl(object, source_path: __FILE__)
    require_relative './template-helpers'
    require_relative './variable-helpers'
    require_relative './environment-helpers'
    require_relative './gem-helpers'
    require_relative './docker-helpers'
    require_relative './callback-helpers'
    require_relative './answer-helpers'
    require_relative './info-helpers'
    require_relative './readme-helpers'

    object.send :extend, TemplateHelpers
    object.send :extend, VariableHelpers
    object.send :extend, EnvironmentHelpers
    object.send :extend, GemHelpers
    object.send :extend, CallbackHelpers
    object.send :extend, AnswerHelpers
    object.send :extend, InfoHelpers
    object.send :extend, ReadmeHelpers

    object.send :source_path, source_path
    object.load_answers
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
potassium-2.3.0 lib/potassium/helpers/template-dsl.rb
potassium-2.2.0 lib/potassium/helpers/template-dsl.rb
potassium-2.1.0 lib/potassium/helpers/template-dsl.rb
potassium-2.0.0 lib/potassium/helpers/template-dsl.rb