Sha256: 7558f1c75717c2c1b42cc60679a240fed5d226af76c4e5af5c4bdd6eb8dcbaa3

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

require "transformator/processor"

class Transformator::FilesystemPatternEvaluator < Transformator::Processor
  def initialize(options = {})
    @patterns = options["patterns"]
  end

  def call!(state)
    state.result = @patterns.map do |pattern|
      Dir.glob(File.expand_path(pattern))
    end.flatten
    binding.pry
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transformator-1.0.0.pre1 lib/transformator/filesystem_pattern_evaluator.rb