Sha256: a3701c305c48ad34ca6822347b690f0681640db14a662b0d94f8c083ea0322f7

Contents?: true

Size: 834 Bytes

Versions: 1

Compression:

Stored size: 834 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/rake/single_rule'
require 'maid/rake/task'
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

1 entries across 1 versions & 1 rubygems

Version Path
maid-0.6.0.alpha.1 lib/maid.rb