Sha256: 7b3622f221590c3bb82df92581d856ea7ed8c6a71d251c1cbb58724802fa9a81

Contents?: true

Size: 537 Bytes

Versions: 13

Compression:

Stored size: 537 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 './callback-helpers'

    object.send :extend, TemplateHelpers
    object.send :extend, VariableHelpers
    object.send :extend, EnvironmentHelpers
    object.send :extend, GemHelpers
    object.send :extend, CallbackHelpers

    object.send :source_path, source_path
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
potassium-1.3.5 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.3.4 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.3.3 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.3.2 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.3.0 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.2.4 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.2.3 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.2.2 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.2.1 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.2.0 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.1.0 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.0.1 lib/potassium/templates/application/helpers/template-dsl.rb
potassium-1.0.0 lib/potassium/templates/application/helpers/template-dsl.rb