Module: VanishingVision
- Defined in:
- lib/vanishing_vision.rb,
lib/vanishing_vision/core.rb,
lib/vanishing_vision/engine.rb,
lib/vanishing_vision/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
Class Method Details
.vanish(target_path, options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vanishing_vision.rb', line 8 def vanish(target_path, = {}) target = Pathname(target_path) if target.file? Engine.new(target).run([:auto_correct]) else Dir[target.join('**/*')].each do |path| next if File.directory?(path) Engine.new(path).run([:auto_correct]) end end end |