module Maid

Migrate trash to correct directory on Linux due to a configuration bug in previous releases.

It used to be that the default trash path was the same on every platform, so everything used to go to `~/.Trash` regardless of OS. (For what it's worth, that used to be the correct trash path on older releases of Ubuntu.)

Constants

SUMMARY
VERSION

Public Class Methods

rules(&block) click to toggle source

Define rules for the Maid instance.

# File lib/maid.rb, line 34
def rules(&block)
  @instance.instance_exec(&block)
end
with_instance(instance) { || ... } click to toggle source

Execute the block with the Maid instance set to instance.

# File lib/maid.rb, line 26
def with_instance(instance)
  @instance = instance
  result = yield
  @instance = nil
  result
end