Sha256: f57c3e2339032d07aa805475f0ba6b669a9a693fab0d56ea369bf520f5da9389

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

module TFW
  # This is the Module for TFW
  class Module
    extend Setters
    make_setter :name, :source, :input

    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
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tfw-0.1.7 lib/tfw/module.rb
tfw-0.1.6 lib/tfw/module.rb
tfw-0.1.4 lib/tfw/module.rb
tfw-0.1.3 lib/tfw/module.rb
tfw-0.1.2 lib/tfw/module.rb
tfw-0.1.1 lib/tfw/module.rb
tfw-0.1.0 lib/tfw/module.rb