Sha256: c4af8e378e98cb7e6fb81edb47d2dbd99688a2e66801bb0a554c42fe882ef9f8

Contents?: true

Size: 777 Bytes

Versions: 14

Compression:

Stored size: 777 Bytes

Contents

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

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

# Alphabetical:
require 'maid/app'
require 'maid/numeric_extensions'
require 'maid/platform'
require 'maid/rule'
require 'maid/trash_migration'
require 'maid/user_agent'

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_eval(&block)
    end
  end
end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
maid-0.5.0 lib/maid.rb
maid-0.4.2 lib/maid.rb
maid-0.5.0.alpha.1 lib/maid.rb
maid-0.4.1 lib/maid.rb
maid-0.4.0 lib/maid.rb
maid-0.4.0.beta.2 lib/maid.rb
maid-0.4.0.beta.1 lib/maid.rb
maid-0.4.0.alpha.2 lib/maid.rb
maid-0.4.0.alpha.1 lib/maid.rb
maid-0.3.0 lib/maid.rb
maid-0.3.0.beta.1 lib/maid.rb
maid-0.2.3.alpha.1 lib/maid.rb
maid-0.2.2 lib/maid.rb
maid-0.2.2.beta.1 lib/maid.rb