class Cbratools::RenameComponent::FilesAndFoldersSelector
Public Class Methods
new(path, name_changes, selectors)
click to toggle source
# File lib/cbratools/rename_component.rb, line 62 def initialize(path, name_changes, selectors) @path = path @name_changes = name_changes @selectors = selectors end
Public Instance Methods
each() { |a| ... }
click to toggle source
# File lib/cbratools/rename_component.rb, line 68 def each all.each { |a| yield a } end
Private Instance Methods
all()
click to toggle source
# File lib/cbratools/rename_component.rb, line 74 def all Dir.glob(@path + "/**/*").select do |filename| @selectors.all? { |selector| selector.call(filename) } end.sort do |a, b| b.length <=> a.length end end