Sha256: 902878d54fbcbc4a7b724ea7672fde4df3346f5af39e031b233bbd7d654d1727

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

### Get Files from dir
begin

  module Str2Duck
    @@spec_files = []
  end

  Dir[File.expand_path(File.join(File.dirname(__FILE__),"**","*"))].sort.uniq.each do |one_file_name|
    one_file_name = File.expand_path one_file_name
    file_name = one_file_name[(File.expand_path(File.dirname(__FILE__)).to_s.length+1)..(one_file_name.length-1)]

    if !one_file_name.include?("pkg")
      if !File.directory? file_name

        Str2Duck.class_variable_get("@@spec_files").push file_name
        STDOUT.puts file_name if $DEBUG

      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
str2duck-1.4.0 files.rb
str2duck-1.3.1 files.rb