class TFW::Module
Public Class Methods
new(&block)
click to toggle source
# File lib/tfw/module.rb, line 9 def initialize(&block) instance_eval(&block) if block_given? %i[name source].each do |e| raise "#{e} must be specified for module" if instance_variable_get("@#{e}").nil? end @stack = TFW.get_stack_for_dir @source, @input, TFDSL::Stack.new end