Sha256: 1fb497be84e662240387f70a1107c616026d5fc5f8401a25732f75cf453ab488
Contents?: true
Size: 866 Bytes
Versions: 5
Compression:
Stored size: 866 Bytes
Contents
require 'deprecated' Deprecated.set_action(:warn) module Maid autoload :App, 'maid/app' autoload :Maid, 'maid/maid' autoload :Tools, 'maid/tools' autoload :NumericExtensions, 'maid/numeric_extensions' autoload :Platform, 'maid/platform' autoload :Rule, 'maid/rule' autoload :TrashMigration, 'maid/trash_migration' autoload :VERSION, 'maid/version' 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 # TODO Is there a no-conflict way of including the extensions?
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
maid-0.1.4.alpha.2 | lib/maid.rb |
maid-0.1.4.alpha.1 | lib/maid.rb |
maid-0.1.3 | lib/maid.rb |
maid-0.1.3.beta.2 | lib/maid.rb |
maid-0.1.3.beta.1 | lib/maid.rb |