Sha256: 15f924a244f37697ce020a14e98277b4c289d6cb2f1a90391bdae632b29b6666
Contents?: true
Size: 509 Bytes
Versions: 3
Compression:
Stored size: 509 Bytes
Contents
require "ro_commands/core_ext/string" module RoCommands class << self def file_map @meth_map.flatten! if @meth_map.respond_to?(:flatten!) @meth_map.uniq! if @meth_map.respond_to?(:uniq!) @meth_map ||= {} end end files = Dir[File.join($lib, "ro_commands/**")].select do |f| test(?f, f) end.delete_if do |f| f = File.basename(f) f.match(%r{all|version|ro_helper|hook|out}) end files.each_with_index do |file, i| file_map[file.to_sym] = 8000 + i end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ro_commands-0.0.3 | lib/ro_commands/helpers/all_files.rb |
ro_commands-0.0.2 | lib/ro_commands/helpers/all_files.rb |
ro_commands-0.0.1 | lib/ro_commands/helpers/all_files.rb |