Sha256: 47b582bc5513372f4c4b2ffb23aad61babd5b8aeb4ade878eeb82d9967cfe8ab

Contents?: true

Size: 907 Bytes

Versions: 16

Compression:

Stored size: 907 Bytes

Contents

require 'deprecated'
require 'escape'
Deprecated.set_action(:warn)

# Must be in this order:
require 'maid/version'
require 'maid/tools'
require 'maid/rule_container'
require 'maid/maid'

# Alphabetical:
require 'maid/app'
require 'maid/numeric_extensions'
require 'maid/platform'
require 'maid/rake/single_rule'
require 'maid/rake/task'
require 'maid/rule'
require 'maid/trash_migration'
require 'maid/user_agent'
require 'maid/watch'
require 'maid/repeat'

module Maid
  class << self
    # Execute the block with the Maid instance set to <tt>instance</tt>.
    def with_instance(instance)
      @instance = instance
      result = yield
      @instance = nil
      result
    end

    # Define rules for the Maid instance.
    def rules(&block)
      @instance.instance_exec(&block)
    end
  end
end

class Numeric
  include Maid::NumericExtensions::Time
  include Maid::NumericExtensions::SizeToKb
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
maid-0.8.0.alpha.1 lib/maid.rb
maid-0.7.0 lib/maid.rb
maid-0.7.0.beta.1 lib/maid.rb
maid-0.7.0.alpha.4 lib/maid.rb
maid-0.7.0.alpha.2 lib/maid.rb
maid-0.7.0.alpha.1 lib/maid.rb
maid-0.6.1 lib/maid.rb
maid-0.6.1.alpha.1 lib/maid.rb
maid-0.6.0 lib/maid.rb
maid-0.6.0.beta.2 lib/maid.rb
maid-0.6.0.beta.1 lib/maid.rb
maid-0.6.0.alpha.6 lib/maid.rb
maid-0.6.0.alpha.5 lib/maid.rb
maid-0.6.0.alpha.4 lib/maid.rb
maid-0.6.0.alpha.3 lib/maid.rb
maid-0.6.0.alpha.2 lib/maid.rb