module Schienenzeppelin::GeneratorUtils

Public Class Methods

included(base) click to toggle source
# File lib/schienenzeppelin/generator_utils.rb, line 5
def self.included(base)
  base.extend(ClassMethods)
end

Protected Instance Methods

context() click to toggle source
# File lib/schienenzeppelin/generator_utils.rb, line 11
def context
  @context ||= Context.new(options)
end

Private Instance Methods

add(*addons) click to toggle source
# File lib/schienenzeppelin/generator_utils.rb, line 17
def add(*addons)
  addons.each do |addon|
    addon = addon.to_s.capitalize.camelize
    "Schienenzeppelin::AddOns::#{addon}"
      .constantize
      .apply(context)
  end
end