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